summaryrefslogtreecommitdiff
path: root/src/pkg/net/parse_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/net/parse_test.go')
-rw-r--r--src/pkg/net/parse_test.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/pkg/net/parse_test.go b/src/pkg/net/parse_test.go
index 8d51eba18..30fda45df 100644
--- a/src/pkg/net/parse_test.go
+++ b/src/pkg/net/parse_test.go
@@ -7,13 +7,15 @@ package net
import (
"bufio"
"os"
- "testing"
"runtime"
+ "testing"
)
func TestReadLine(t *testing.T) {
// /etc/services file does not exist on windows and Plan 9.
- if runtime.GOOS == "windows" || runtime.GOOS == "plan9" {
+ switch runtime.GOOS {
+ case "plan9", "windows":
+ t.Logf("skipping test on %q", runtime.GOOS)
return
}
filename := "/etc/services" // a nice big file