diff options
author | Ondřej Surý <ondrej@sury.org> | 2011-01-17 12:40:45 +0100 |
---|---|---|
committer | Ondřej Surý <ondrej@sury.org> | 2011-01-17 12:40:45 +0100 |
commit | 3e45412327a2654a77944249962b3652e6142299 (patch) | |
tree | bc3bf69452afa055423cbe0c5cfa8ca357df6ccf /src/pkg/net/server_test.go | |
parent | c533680039762cacbc37db8dc7eed074c3e497be (diff) | |
download | golang-upstream/2011.01.12.tar.gz |
Imported Upstream version 2011.01.12upstream/2011.01.12
Diffstat (limited to 'src/pkg/net/server_test.go')
-rw-r--r-- | src/pkg/net/server_test.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/pkg/net/server_test.go b/src/pkg/net/server_test.go index 0d077fe95..46bedaa5b 100644 --- a/src/pkg/net/server_test.go +++ b/src/pkg/net/server_test.go @@ -11,6 +11,7 @@ import ( "strings" "syscall" "testing" + "runtime" ) // Do not test empty datagrams by default. @@ -108,6 +109,10 @@ func TestTCPServer(t *testing.T) { } func TestUnixServer(t *testing.T) { + // "unix" sockets are not supported on windows. + if runtime.GOOS == "windows" { + return + } os.Remove("/tmp/gotest.net") doTest(t, "unix", "/tmp/gotest.net", "/tmp/gotest.net") os.Remove("/tmp/gotest.net") @@ -177,6 +182,10 @@ func TestUDPServer(t *testing.T) { } func TestUnixDatagramServer(t *testing.T) { + // "unix" sockets are not supported on windows. + if runtime.GOOS == "windows" { + return + } for _, isEmpty := range []bool{false} { os.Remove("/tmp/gotest1.net") os.Remove("/tmp/gotest1.net.local") |