We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 199fbd4 commit 0183c1aCopy full SHA for 0183c1a
src/cmd/compile/internal/syntax/parser_test.go
@@ -70,6 +70,18 @@ func TestStdLib(t *testing.T) {
70
filepath.Join(goroot, "src"),
71
filepath.Join(goroot, "misc"),
72
} {
73
+ if filepath.Base(dir) == "misc" {
74
+ // cmd/distpack deletes GOROOT/misc, so skip that directory if it isn't present.
75
+ // cmd/distpack also requires GOROOT/VERSION to exist, so use that to
76
+ // suppress false-positive skips.
77
+ if _, err := os.Stat(dir); os.IsNotExist(err) {
78
+ if _, err := os.Stat(filepath.Join(testenv.GOROOT(t), "VERSION")); err == nil {
79
+ fmt.Printf("%s not present; skipping\n", dir)
80
+ continue
81
+ }
82
83
84
+
85
walkDirs(t, dir, func(filename string) {
86
if skipRx != nil && skipRx.MatchString(filename) {
87
// Always report skipped files since regexp
0 commit comments