mirror of
https://github.com/golang/go
synced 2024-11-21 22:14:41 -07:00
net: fix build on freebsd
TBR=adg CC=golang-dev https://golang.org/cl/3992044
This commit is contained in:
parent
f96c1d076a
commit
035fcb0da2
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user