mirror of
https://github.com/golang/go
synced 2024-11-18 11:44:45 -07:00
cmd/guru: suppress failing test on plan9
The test expectation includes the text of a UNIX ENOENT message. Also, make the same change for (deprecated) oracle tool. Fixes golang/go#16397 Change-Id: I8c3c6a300ff2366bfeb97cf41d34097c41aab680 Reviewed-on: https://go-review.googlesource.com/24968 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
29481a356d
commit
f2932db7c0
@ -242,6 +242,12 @@ func TestGuru(t *testing.T) {
|
||||
"testdata/src/referrers-json/main.go",
|
||||
"testdata/src/what-json/main.go",
|
||||
} {
|
||||
if filename == "testdata/src/referrers/main.go" && runtime.GOOS == "plan9" {
|
||||
// Disable this test on plan9 since it expects a particular
|
||||
// wording for a "no such file or directory" error.
|
||||
continue
|
||||
}
|
||||
|
||||
json := strings.Contains(filename, "-json/")
|
||||
queries := parseQueries(t, filename)
|
||||
golden := filename + "lden"
|
||||
|
@ -228,6 +228,12 @@ func TestOracle(t *testing.T) {
|
||||
"testdata/src/referrers-json/main.go",
|
||||
"testdata/src/what-json/main.go",
|
||||
} {
|
||||
if filename == "testdata/src/referrers/main.go" && runtime.GOOS == "plan9" {
|
||||
// Disable this test on plan9 since it expects a particular
|
||||
// wording for a "no such file or directory" error.
|
||||
continue
|
||||
}
|
||||
|
||||
useJson := strings.Contains(filename, "-json/")
|
||||
queries := parseQueries(t, filename)
|
||||
golden := filename + "lden"
|
||||
|
Loading…
Reference in New Issue
Block a user