From ac080fa6d85ae848089b55144de0ce9dfc484d64 Mon Sep 17 00:00:00 2001 From: David Crawshaw Date: Mon, 9 Mar 2015 09:06:11 -0400 Subject: [PATCH] net: skip unixgram tests on darwin/arm Change-Id: I9d2c84237f7b1c4dc2e53adf249b7518dda81a21 Reviewed-on: https://go-review.googlesource.com/7165 Run-TryBot: David Crawshaw TryBot-Result: Gobot Gobot Reviewed-by: Hyang-Ah Hana Kim --- src/net/unix_test.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/net/unix_test.go b/src/net/unix_test.go index 1cdff3908c..55c5072bc9 100644 --- a/src/net/unix_test.go +++ b/src/net/unix_test.go @@ -17,6 +17,9 @@ import ( ) func TestReadUnixgramWithUnnamedSocket(t *testing.T) { + if runtime.GOOS == "darwin" && (runtime.GOARCH == "arm" || runtime.GOARCH == "arm64") { + t.Skipf("skipping unixgram test on %s/%s", runtime.GOOS, runtime.GOARCH) + } addr := testUnixAddr() la, err := ResolveUnixAddr("unixgram", addr) if err != nil { @@ -64,6 +67,9 @@ func TestReadUnixgramWithUnnamedSocket(t *testing.T) { } func TestReadUnixgramWithZeroBytesBuffer(t *testing.T) { + if runtime.GOOS == "darwin" && (runtime.GOARCH == "arm" || runtime.GOARCH == "arm64") { + t.Skipf("skipping unixgram test on %s/%s", runtime.GOOS, runtime.GOARCH) + } // issue 4352: Recvfrom failed with "address family not // supported by protocol family" if zero-length buffer provided @@ -152,6 +158,9 @@ func TestUnixAutobindClose(t *testing.T) { } func TestUnixgramWrite(t *testing.T) { + if runtime.GOOS == "darwin" && (runtime.GOARCH == "arm" || runtime.GOARCH == "arm64") { + t.Skipf("skipping unixgram test on %s/%s", runtime.GOOS, runtime.GOARCH) + } addr := testUnixAddr() laddr, err := ResolveUnixAddr("unixgram", addr) if err != nil { @@ -219,6 +228,9 @@ func testUnixgramWritePacketConn(t *testing.T, raddr *UnixAddr) { } func TestUnixConnLocalAndRemoteNames(t *testing.T) { + if runtime.GOOS == "darwin" && (runtime.GOARCH == "arm" || runtime.GOARCH == "arm64") { + t.Skipf("skipping unixgram test on %s/%s", runtime.GOOS, runtime.GOARCH) + } for _, laddr := range []string{"", testUnixAddr()} { laddr := laddr taddr := testUnixAddr() @@ -278,6 +290,9 @@ func TestUnixConnLocalAndRemoteNames(t *testing.T) { } func TestUnixgramConnLocalAndRemoteNames(t *testing.T) { + if runtime.GOOS == "darwin" && (runtime.GOARCH == "arm" || runtime.GOARCH == "arm64") { + t.Skipf("skipping unixgram test on %s/%s", runtime.GOOS, runtime.GOARCH) + } for _, laddr := range []string{"", testUnixAddr()} { laddr := laddr taddr := testUnixAddr() -- 2.48.1