mirror of
https://github.com/golang/go
synced 2024-11-19 05:44:40 -07:00
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: Hyang-Ah Hana Kim <hyangah@gmail.com>
This commit is contained in:
parent
9b8ad3fde2
commit
ac080fa6d8
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user