diff --git a/src/cmd/go/note_test.go b/src/cmd/go/note_test.go index cbb3db8a17b88..74097119c9b1c 100644 --- a/src/cmd/go/note_test.go +++ b/src/cmd/go/note_test.go @@ -5,7 +5,7 @@ package main_test import ( - "cmd/go" + main "cmd/go" "runtime" "testing" ) @@ -24,11 +24,18 @@ func TestNoteReading(t *testing.T) { t.Fatalf("buildID in hello binary = %q, want %q", id, buildID) } + if runtime.GOOS == "linux" && runtime.GOARCH == "ppc64le" { + t.Logf("skipping - golang.org/issue/11184") + } + switch runtime.GOOS { case "plan9": // no external linking t.Logf("no external linking - skipping linkmode=external test") + case "solaris": + t.Logf("skipping - golang.org/issue/12178") + default: tg.run("build", "-ldflags", "-buildid="+buildID+" -linkmode=external", "-o", tg.path("hello.exe"), tg.path("hello.go")) id, err := main.ReadBuildIDFromBinary(tg.path("hello.exe"))