From 6cd21e820b604029289690551d52745dbbc800ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aram=20H=C4=83v=C4=83rneanu?= Date: Tue, 24 Jun 2014 20:47:16 +1000 Subject: [PATCH] go.tools/go/loader: fix Solaris build Also fix one test that failed on Plan 9. LGTM=0intro, dave R=golang-codereviews, 0intro, dave CC=golang-codereviews https://golang.org/cl/101370053 --- go/loader/stdlib_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/go/loader/stdlib_test.go b/go/loader/stdlib_test.go index a464add5..8b47c5f9 100644 --- a/go/loader/stdlib_test.go +++ b/go/loader/stdlib_test.go @@ -138,8 +138,9 @@ func TestStdlib(t *testing.T) { } func TestCgoOption(t *testing.T) { - if runtime.GOOS == "windows" { - // on windows, the net and os/user packages don't use cgo. + switch runtime.GOOS { + // on these systems, the net and os/user packages don't use cgo. + case "plan9", "solaris", "windows": return } // Test that we can load cgo-using packages with