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
This commit is contained in:
Aram Hăvărneanu 2014-06-24 20:47:16 +10:00 committed by Dave Cheney
parent 3309b0d879
commit 6cd21e820b
1 changed files with 3 additions and 2 deletions

View File

@ -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