mirror of
https://github.com/golang/go
synced 2024-10-02 00:18:32 -06:00
net: skip unsupported tests (unix and unixgram) on darwin/arm
Change-Id: Id1927180ecd18b849727225adea05465d36b3973 Reviewed-on: https://go-review.googlesource.com/6210 Reviewed-by: Mikio Hara <mikioh.mikioh@gmail.com> Reviewed-by: David Crawshaw <crawshaw@golang.org>
This commit is contained in:
parent
122384e489
commit
4c6364a87d
@ -36,6 +36,10 @@ func TestConnAndListener(t *testing.T) {
|
|||||||
case "nacl", "plan9", "windows":
|
case "nacl", "plan9", "windows":
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
// iOS does not support unix domain sockets
|
||||||
|
if runtime.GOOS == "darwin" && runtime.GOARCH == "arm" {
|
||||||
|
continue
|
||||||
|
}
|
||||||
case "unixpacket":
|
case "unixpacket":
|
||||||
switch runtime.GOOS {
|
switch runtime.GOOS {
|
||||||
case "android", "darwin", "nacl", "openbsd", "plan9", "windows":
|
case "android", "darwin", "nacl", "openbsd", "plan9", "windows":
|
||||||
|
@ -66,6 +66,10 @@ func TestShutdownUnix(t *testing.T) {
|
|||||||
switch runtime.GOOS {
|
switch runtime.GOOS {
|
||||||
case "nacl", "plan9", "windows":
|
case "nacl", "plan9", "windows":
|
||||||
t.Skipf("skipping test on %q", runtime.GOOS)
|
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")
|
f, err := ioutil.TempFile("", "go_net_unixtest")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -51,6 +51,9 @@ var packetConnTests = []struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestPacketConn(t *testing.T) {
|
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) {
|
closer := func(c PacketConn, net, addr1, addr2 string) {
|
||||||
c.Close()
|
c.Close()
|
||||||
switch net {
|
switch net {
|
||||||
@ -106,6 +109,9 @@ func TestPacketConn(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestConnAndPacketConn(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) {
|
closer := func(c PacketConn, net, addr1, addr2 string) {
|
||||||
c.Close()
|
c.Close()
|
||||||
switch net {
|
switch net {
|
||||||
|
@ -221,6 +221,10 @@ func TestUnixListenerSpecificMethods(t *testing.T) {
|
|||||||
switch runtime.GOOS {
|
switch runtime.GOOS {
|
||||||
case "nacl", "plan9", "windows":
|
case "nacl", "plan9", "windows":
|
||||||
t.Skipf("skipping test on %q", runtime.GOOS)
|
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()
|
addr := testUnixAddr()
|
||||||
@ -263,6 +267,10 @@ func TestUnixConnSpecificMethods(t *testing.T) {
|
|||||||
switch runtime.GOOS {
|
switch runtime.GOOS {
|
||||||
case "nacl", "plan9", "windows":
|
case "nacl", "plan9", "windows":
|
||||||
t.Skipf("skipping test on %q", runtime.GOOS)
|
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()
|
addr1, addr2, addr3 := testUnixAddr(), testUnixAddr(), testUnixAddr()
|
||||||
|
@ -21,6 +21,10 @@ func skipServerTest(net, unixsotype, addr string, ipv6, ipv4map, linuxOnly bool)
|
|||||||
if net == unixsotype {
|
if net == unixsotype {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
case "darwin":
|
||||||
|
if runtime.GOARCH == "arm" && net == unixsotype {
|
||||||
|
return true
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
if net == unixsotype && linuxOnly {
|
if net == unixsotype && linuxOnly {
|
||||||
return true
|
return true
|
||||||
|
Loading…
Reference in New Issue
Block a user