diff --git a/src/net/conn_test.go b/src/net/conn_test.go index 9c9d1a8057d..b86ef437fb4 100644 --- a/src/net/conn_test.go +++ b/src/net/conn_test.go @@ -36,6 +36,10 @@ func TestConnAndListener(t *testing.T) { case "nacl", "plan9", "windows": continue } + // iOS does not support unix domain sockets + if runtime.GOOS == "darwin" && runtime.GOARCH == "arm" { + continue + } case "unixpacket": switch runtime.GOOS { case "android", "darwin", "nacl", "openbsd", "plan9", "windows": diff --git a/src/net/net_test.go b/src/net/net_test.go index bfed4d657fd..acf9ee5a35a 100644 --- a/src/net/net_test.go +++ b/src/net/net_test.go @@ -66,6 +66,10 @@ func TestShutdownUnix(t *testing.T) { switch runtime.GOOS { case "nacl", "plan9", "windows": t.Skipf("skipping test on %q", runtime.GOOS) + case "darwin": + if runtime.GOARCH == "arm" { + t.Skipf("skipping test on %s/%s", runtime.GOOS, runtime.GOARCH) + } } f, err := ioutil.TempFile("", "go_net_unixtest") if err != nil { diff --git a/src/net/packetconn_test.go b/src/net/packetconn_test.go index 5bbfc0f82ae..72bdb49196c 100644 --- a/src/net/packetconn_test.go +++ b/src/net/packetconn_test.go @@ -51,6 +51,9 @@ var packetConnTests = []struct { } func TestPacketConn(t *testing.T) { + if runtime.GOOS == "darwin" && runtime.GOARCH == "arm" { + t.Skip("skipping test on darwin/arm") + } closer := func(c PacketConn, net, addr1, addr2 string) { c.Close() switch net { @@ -106,6 +109,9 @@ func TestPacketConn(t *testing.T) { } func TestConnAndPacketConn(t *testing.T) { + if runtime.GOOS == "darwin" && runtime.GOARCH == "arm" { + t.Skip("skipping test on darwin/arm") + } closer := func(c PacketConn, net, addr1, addr2 string) { c.Close() switch net { diff --git a/src/net/protoconn_test.go b/src/net/protoconn_test.go index 61c35dfc703..18ac4a6bdf1 100644 --- a/src/net/protoconn_test.go +++ b/src/net/protoconn_test.go @@ -221,6 +221,10 @@ func TestUnixListenerSpecificMethods(t *testing.T) { switch runtime.GOOS { case "nacl", "plan9", "windows": t.Skipf("skipping test on %q", runtime.GOOS) + case "darwin": + if runtime.GOARCH == "arm" { + t.Skipf("skipping test on %s/%s", runtime.GOOS, runtime.GOARCH) + } } addr := testUnixAddr() @@ -263,6 +267,10 @@ func TestUnixConnSpecificMethods(t *testing.T) { switch runtime.GOOS { case "nacl", "plan9", "windows": t.Skipf("skipping test on %q", runtime.GOOS) + case "darwin": + if runtime.GOARCH == "arm" { + t.Skipf("skipping test on %s/%s", runtime.GOOS, runtime.GOARCH) + } } addr1, addr2, addr3 := testUnixAddr(), testUnixAddr(), testUnixAddr() diff --git a/src/net/server_test.go b/src/net/server_test.go index bf7feab8f51..e0768e67cf7 100644 --- a/src/net/server_test.go +++ b/src/net/server_test.go @@ -21,6 +21,10 @@ func skipServerTest(net, unixsotype, addr string, ipv6, ipv4map, linuxOnly bool) if net == unixsotype { return true } + case "darwin": + if runtime.GOARCH == "arm" && net == unixsotype { + return true + } default: if net == unixsotype && linuxOnly { return true