Commit ac080fa6 authored by David Crawshaw's avatar David Crawshaw

net: skip unixgram tests on darwin/arm

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: 's avatarHyang-Ah Hana Kim <hyangah@gmail.com>
parent 9b8ad3fd
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment