Skip to content

Commit

Permalink
[release-branch.go1.13] cmd/compile/internal/syntax: don't hardwire p…
Browse files Browse the repository at this point in the history
…ath separator in test

Windows uses '\' not '/'.

For #35175.
Fixes #37901.

Change-Id: Ib3d01dcf148fc0675496d5213f5bcc9cf210a6fc
Reviewed-on: https://go-review.googlesource.com/c/go/+/203889
Reviewed-by: Bryan C. Mills <[email protected]>
Run-TryBot: Brad Fitzpatrick <[email protected]>
(cherry picked from commit a754d29)
Reviewed-on: https://go-review.googlesource.com/c/go/+/223703
Reviewed-by: Robert Griesemer <[email protected]>
Run-TryBot: Andrew Bonventre <[email protected]>
  • Loading branch information
griesemer authored and dmitshur committed Mar 31, 2020
1 parent f353662 commit 5a31a97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/compile/internal/syntax/parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func walkDirs(t *testing.T, dir string, action func(string)) {
}
} else if fi.IsDir() && fi.Name() != "testdata" {
path := filepath.Join(dir, fi.Name())
if !strings.HasSuffix(path, "/test") {
if !strings.HasSuffix(path, string(filepath.Separator)+"test") {
dirs = append(dirs, path)
}
}
Expand Down

0 comments on commit 5a31a97

Please sign in to comment.