From f2932db7c0155d2ea19373270a3fa937349ac375 Mon Sep 17 00:00:00 2001 From: Alan Donovan Date: Mon, 18 Jul 2016 09:54:51 -0400 Subject: [PATCH] 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 Run-TryBot: Brad Fitzpatrick TryBot-Result: Gobot Gobot --- cmd/guru/guru_test.go | 6 ++++++ oracle/oracle_test.go | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/cmd/guru/guru_test.go b/cmd/guru/guru_test.go index b4073d94..62dcd6d3 100644 --- a/cmd/guru/guru_test.go +++ b/cmd/guru/guru_test.go @@ -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" diff --git a/oracle/oracle_test.go b/oracle/oracle_test.go index 0dd1cdcd..4aec489c 100644 --- a/oracle/oracle_test.go +++ b/oracle/oracle_test.go @@ -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"