From 32dcbb4ccca1d39fc73d6d9707d72e31d53fa0e1 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Fri, 31 Jul 2015 15:26:00 -0700 Subject: [PATCH] cmd/godoc: exclude TestTypeAnalysis on Plan 9 for now Attempt to make build work on Plan 9. For golang/go#11811. Change-Id: I37a5eaef441262342994a8f77c86aa5e120deea7 Reviewed-on: https://go-review.googlesource.com/13033 Reviewed-by: Ian Lance Taylor --- cmd/godoc/godoc_test.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmd/godoc/godoc_test.go b/cmd/godoc/godoc_test.go index f878c06454..a228fae2f9 100644 --- a/cmd/godoc/godoc_test.go +++ b/cmd/godoc/godoc_test.go @@ -303,6 +303,10 @@ func testWeb(t *testing.T, withIndex bool) { // Basic integration test for godoc -analysis=type (via HTTP interface). func TestTypeAnalysis(t *testing.T) { + if runtime.GOOS == "plan9" { + t.Skip("skipping test on plan9 (issue #11974)") // see comment re: Plan 9 below + } + // Write a fake GOROOT/GOPATH. tmpdir, err := ioutil.TempDir("", "godoc-analysis") if err != nil { @@ -360,7 +364,7 @@ func main() { print(lib.V) } // Wait for type analysis to complete. reader := bufio.NewReader(stderr) for { - s, err := reader.ReadString('\n') + s, err := reader.ReadString('\n') // on Plan 9 this fails if err != nil { t.Fatal(err) }