1
0
mirror of https://github.com/golang/go synced 2024-11-21 16:04:45 -07:00

net: fix build on freebsd

TBR=adg
CC=golang-dev
https://golang.org/cl/3992044
This commit is contained in:
Russ Cox 2011-01-19 15:24:25 -05:00
parent f96c1d076a
commit 035fcb0da2

View 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")