aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2011-01-19 15:24:25 -0500
committerRuss Cox <rsc@golang.org>2011-01-19 15:24:25 -0500
commit035fcb0da2490d72299ccddcaa324c4f00b4e3c4 (patch)
treef3b880c3ab8316b4ffcc9f0c785d726a67b08dec
parentf96c1d076ad24992f2f028736e3941e74a1ae4b6 (diff)
downloadgo-035fcb0da2490d72299ccddcaa324c4f00b4e3c4.tar.gz
go-035fcb0da2490d72299ccddcaa324c4f00b4e3c4.zip
net: fix build on freebsd
TBR=adg CC=golang-dev https://golang.org/cl/3992044
-rw-r--r--src/pkg/net/server_test.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/pkg/net/server_test.go b/src/pkg/net/server_test.go
index e3f718a59d..3f2442a462 100644
--- a/src/pkg/net/server_test.go
+++ b/src/pkg/net/server_test.go
@@ -116,11 +116,9 @@ func TestUnixServer(t *testing.T) {
os.Remove("/tmp/gotest.net")
doTest(t, "unix", "/tmp/gotest.net", "/tmp/gotest.net")
os.Remove("/tmp/gotest.net")
- if syscall.OS != "darwin" {
+ if syscall.OS == "linux" {
doTest(t, "unixpacket", "/tmp/gotest.net", "/tmp/gotest.net")
os.Remove("/tmp/gotest.net")
- }
- if syscall.OS == "linux" {
// Test abstract unix domain socket, a Linux-ism
doTest(t, "unix", "@gotest/net", "@gotest/net")
doTest(t, "unixpacket", "@gotest/net", "@gotest/net")