mirror of https://github.com/golang/go.git
net: add skip message to test
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5753048
This commit is contained in:
parent
932c8ddba1
commit
9442c4429a
|
|
@ -47,9 +47,11 @@ var multicastListenerTests = []struct {
|
||||||
func TestMulticastListener(t *testing.T) {
|
func TestMulticastListener(t *testing.T) {
|
||||||
switch runtime.GOOS {
|
switch runtime.GOOS {
|
||||||
case "netbsd", "openbsd", "plan9", "windows":
|
case "netbsd", "openbsd", "plan9", "windows":
|
||||||
|
t.Logf("skipping test on %q", runtime.GOOS)
|
||||||
return
|
return
|
||||||
case "linux":
|
case "linux":
|
||||||
if runtime.GOARCH == "arm" || runtime.GOARCH == "alpha" {
|
if runtime.GOARCH == "arm" || runtime.GOARCH == "alpha" {
|
||||||
|
t.Logf("skipping test on %q/%q", runtime.GOOS, runtime.GOARCH)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -86,6 +88,7 @@ func TestMulticastListener(t *testing.T) {
|
||||||
func TestSimpleMulticastListener(t *testing.T) {
|
func TestSimpleMulticastListener(t *testing.T) {
|
||||||
switch runtime.GOOS {
|
switch runtime.GOOS {
|
||||||
case "plan9":
|
case "plan9":
|
||||||
|
t.Logf("skipping test on %q", runtime.GOOS)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,7 @@ var avoidOSXFirewallDialogPopup = func() bool {
|
||||||
|
|
||||||
func TestShutdown(t *testing.T) {
|
func TestShutdown(t *testing.T) {
|
||||||
if runtime.GOOS == "plan9" {
|
if runtime.GOOS == "plan9" {
|
||||||
|
t.Logf("skipping test on %q", runtime.GOOS)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
l, err := Listen("tcp", "127.0.0.1:0")
|
l, err := Listen("tcp", "127.0.0.1:0")
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,9 @@ import (
|
||||||
|
|
||||||
func TestReadLine(t *testing.T) {
|
func TestReadLine(t *testing.T) {
|
||||||
// /etc/services file does not exist on windows and Plan 9.
|
// /etc/services file does not exist on windows and Plan 9.
|
||||||
if runtime.GOOS == "windows" || runtime.GOOS == "plan9" {
|
switch runtime.GOOS {
|
||||||
|
case "plan9", "windows":
|
||||||
|
t.Logf("skipping test on %q", runtime.GOOS)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
filename := "/etc/services" // a nice big file
|
filename := "/etc/services" // a nice big file
|
||||||
|
|
|
||||||
|
|
@ -142,6 +142,7 @@ var seqpacketConnServerTests = []struct {
|
||||||
|
|
||||||
func TestSeqpacketConnServer(t *testing.T) {
|
func TestSeqpacketConnServer(t *testing.T) {
|
||||||
if runtime.GOOS != "linux" {
|
if runtime.GOOS != "linux" {
|
||||||
|
t.Logf("skipping test on %q", runtime.GOOS)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,9 @@ func testTimeout(t *testing.T, net, addr string, readFrom bool) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestTimeoutUDP(t *testing.T) {
|
func TestTimeoutUDP(t *testing.T) {
|
||||||
if runtime.GOOS == "plan9" {
|
switch runtime.GOOS {
|
||||||
|
case "plan9":
|
||||||
|
t.Logf("skipping test on %q", runtime.GOOS)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -73,7 +75,9 @@ func TestTimeoutUDP(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestTimeoutTCP(t *testing.T) {
|
func TestTimeoutTCP(t *testing.T) {
|
||||||
if runtime.GOOS == "plan9" {
|
switch runtime.GOOS {
|
||||||
|
case "plan9":
|
||||||
|
t.Logf("skipping test on %q", runtime.GOOS)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -88,7 +92,9 @@ func TestTimeoutTCP(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestDeadlineReset(t *testing.T) {
|
func TestDeadlineReset(t *testing.T) {
|
||||||
if runtime.GOOS == "plan9" {
|
switch runtime.GOOS {
|
||||||
|
case "plan9":
|
||||||
|
t.Logf("skipping test on %q", runtime.GOOS)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
ln, err := Listen("tcp", "127.0.0.1:0")
|
ln, err := Listen("tcp", "127.0.0.1:0")
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,9 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestWriteToUDP(t *testing.T) {
|
func TestWriteToUDP(t *testing.T) {
|
||||||
if runtime.GOOS == "plan9" {
|
switch runtime.GOOS {
|
||||||
|
case "plan9":
|
||||||
|
t.Logf("skipping test on %q", runtime.GOOS)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -45,6 +45,7 @@ var listenerTests = []struct {
|
||||||
func TestTCPListener(t *testing.T) {
|
func TestTCPListener(t *testing.T) {
|
||||||
switch runtime.GOOS {
|
switch runtime.GOOS {
|
||||||
case "plan9", "windows":
|
case "plan9", "windows":
|
||||||
|
t.Logf("skipping test on %q", runtime.GOOS)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -80,6 +81,7 @@ func TestTCPListener(t *testing.T) {
|
||||||
func TestUDPListener(t *testing.T) {
|
func TestUDPListener(t *testing.T) {
|
||||||
switch runtime.GOOS {
|
switch runtime.GOOS {
|
||||||
case "plan9", "windows":
|
case "plan9", "windows":
|
||||||
|
t.Logf("skipping test on %q", runtime.GOOS)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -125,6 +127,7 @@ func TestUDPListener(t *testing.T) {
|
||||||
func TestSimpleTCPListener(t *testing.T) {
|
func TestSimpleTCPListener(t *testing.T) {
|
||||||
switch runtime.GOOS {
|
switch runtime.GOOS {
|
||||||
case "plan9":
|
case "plan9":
|
||||||
|
t.Logf("skipping test on %q", runtime.GOOS)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -150,6 +153,7 @@ func TestSimpleTCPListener(t *testing.T) {
|
||||||
func TestSimpleUDPListener(t *testing.T) {
|
func TestSimpleUDPListener(t *testing.T) {
|
||||||
switch runtime.GOOS {
|
switch runtime.GOOS {
|
||||||
case "plan9":
|
case "plan9":
|
||||||
|
t.Logf("skipping test on %q", runtime.GOOS)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -255,6 +259,7 @@ var dualStackListenerTests = []struct {
|
||||||
func TestDualStackTCPListener(t *testing.T) {
|
func TestDualStackTCPListener(t *testing.T) {
|
||||||
switch runtime.GOOS {
|
switch runtime.GOOS {
|
||||||
case "plan9":
|
case "plan9":
|
||||||
|
t.Logf("skipping test on %q", runtime.GOOS)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if !supportsIPv6 {
|
if !supportsIPv6 {
|
||||||
|
|
@ -291,6 +296,7 @@ func TestDualStackTCPListener(t *testing.T) {
|
||||||
func TestDualStackUDPListener(t *testing.T) {
|
func TestDualStackUDPListener(t *testing.T) {
|
||||||
switch runtime.GOOS {
|
switch runtime.GOOS {
|
||||||
case "plan9":
|
case "plan9":
|
||||||
|
t.Logf("skipping test on %q", runtime.GOOS)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if !supportsIPv6 {
|
if !supportsIPv6 {
|
||||||
|
|
@ -521,6 +527,7 @@ var prohibitionaryDialArgTests = []struct {
|
||||||
func TestProhibitionaryDialArgs(t *testing.T) {
|
func TestProhibitionaryDialArgs(t *testing.T) {
|
||||||
switch runtime.GOOS {
|
switch runtime.GOOS {
|
||||||
case "plan9":
|
case "plan9":
|
||||||
|
t.Logf("skipping test on %q", runtime.GOOS)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
// This test requires both IPv6 and IPv6 IPv4-mapping functionality.
|
// This test requires both IPv6 and IPv6 IPv4-mapping functionality.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue