]> Cypherpunks repositories - gostls13.git/commitdiff
net: fix build on freebsd
authorRuss Cox <rsc@golang.org>
Wed, 19 Jan 2011 20:24:25 +0000 (15:24 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 19 Jan 2011 20:24:25 +0000 (15:24 -0500)
TBR=adg
CC=golang-dev
https://golang.org/cl/3992044

src/pkg/net/server_test.go

index e3f718a59dc558ea0d287f01b3f69e8b48b105ea..3f2442a462ddf435dd968af0a6e6e01a781f499c 100644 (file)
@@ -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")