]> Cypherpunks repositories - gostls13.git/commitdiff
net: skip unixgram tests on darwin/arm
authorDavid Crawshaw <crawshaw@golang.org>
Mon, 9 Mar 2015 13:06:11 +0000 (09:06 -0400)
committerDavid Crawshaw <crawshaw@golang.org>
Mon, 9 Mar 2015 15:34:32 +0000 (15:34 +0000)
Change-Id: I9d2c84237f7b1c4dc2e53adf249b7518dda81a21
Reviewed-on: https://go-review.googlesource.com/7165
Run-TryBot: David Crawshaw <crawshaw@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
src/net/unix_test.go

index 1cdff3908c1ad3e962a64b168db8c3880b0391fe..55c5072bc92d8784495b9a9ca32f67a5bf1ab6e1 100644 (file)
@@ -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()