Commit b1772d92 authored by Mikio Hara's avatar Mikio Hara

x/net/ipv6: disable full stack tests on nacl

LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/172900043
parent 89143d45
...@@ -35,7 +35,7 @@ func TestICMPString(t *testing.T) { ...@@ -35,7 +35,7 @@ func TestICMPString(t *testing.T) {
func TestICMPFilter(t *testing.T) { func TestICMPFilter(t *testing.T) {
switch runtime.GOOS { switch runtime.GOOS {
case "plan9", "solaris", "windows": case "nacl", "plan9", "solaris", "windows":
t.Skipf("not supported on %q", runtime.GOOS) t.Skipf("not supported on %q", runtime.GOOS)
} }
...@@ -68,7 +68,7 @@ func TestICMPFilter(t *testing.T) { ...@@ -68,7 +68,7 @@ func TestICMPFilter(t *testing.T) {
func TestSetICMPFilter(t *testing.T) { func TestSetICMPFilter(t *testing.T) {
switch runtime.GOOS { switch runtime.GOOS {
case "plan9", "solaris", "windows": case "nacl", "plan9", "solaris", "windows":
t.Skipf("not supported on %q", runtime.GOOS) t.Skipf("not supported on %q", runtime.GOOS)
} }
if !supportsIPv6 { if !supportsIPv6 {
......
...@@ -23,7 +23,7 @@ func TestPacketConnReadWriteMulticastUDP(t *testing.T) { ...@@ -23,7 +23,7 @@ func TestPacketConnReadWriteMulticastUDP(t *testing.T) {
case "freebsd": // due to a bug on loopback marking case "freebsd": // due to a bug on loopback marking
// See http://www.freebsd.org/cgi/query-pr.cgi?pr=180065. // See http://www.freebsd.org/cgi/query-pr.cgi?pr=180065.
t.Skipf("not supported on %q", runtime.GOOS) t.Skipf("not supported on %q", runtime.GOOS)
case "plan9", "solaris", "windows": case "nacl", "plan9", "solaris", "windows":
t.Skipf("not supported on %q", runtime.GOOS) t.Skipf("not supported on %q", runtime.GOOS)
} }
if !supportsIPv6 { if !supportsIPv6 {
...@@ -101,7 +101,7 @@ func TestPacketConnReadWriteMulticastUDP(t *testing.T) { ...@@ -101,7 +101,7 @@ func TestPacketConnReadWriteMulticastUDP(t *testing.T) {
func TestPacketConnReadWriteMulticastICMP(t *testing.T) { func TestPacketConnReadWriteMulticastICMP(t *testing.T) {
switch runtime.GOOS { switch runtime.GOOS {
case "plan9", "solaris", "windows": case "nacl", "plan9", "solaris", "windows":
t.Skipf("not supported on %q", runtime.GOOS) t.Skipf("not supported on %q", runtime.GOOS)
} }
if !supportsIPv6 { if !supportsIPv6 {
......
...@@ -23,7 +23,7 @@ var udpMultipleGroupListenerTests = []net.Addr{ ...@@ -23,7 +23,7 @@ var udpMultipleGroupListenerTests = []net.Addr{
func TestUDPSinglePacketConnWithMultipleGroupListeners(t *testing.T) { func TestUDPSinglePacketConnWithMultipleGroupListeners(t *testing.T) {
switch runtime.GOOS { switch runtime.GOOS {
case "plan9", "solaris", "windows": case "nacl", "plan9", "solaris", "windows":
t.Skipf("not supported on %q", runtime.GOOS) t.Skipf("not supported on %q", runtime.GOOS)
} }
if !supportsIPv6 { if !supportsIPv6 {
...@@ -63,7 +63,7 @@ func TestUDPSinglePacketConnWithMultipleGroupListeners(t *testing.T) { ...@@ -63,7 +63,7 @@ func TestUDPSinglePacketConnWithMultipleGroupListeners(t *testing.T) {
func TestUDPMultiplePacketConnWithMultipleGroupListeners(t *testing.T) { func TestUDPMultiplePacketConnWithMultipleGroupListeners(t *testing.T) {
switch runtime.GOOS { switch runtime.GOOS {
case "plan9", "solaris", "windows": case "nacl", "plan9", "solaris", "windows":
t.Skipf("not supported on %q", runtime.GOOS) t.Skipf("not supported on %q", runtime.GOOS)
} }
if !supportsIPv6 { if !supportsIPv6 {
...@@ -115,7 +115,7 @@ func TestUDPMultiplePacketConnWithMultipleGroupListeners(t *testing.T) { ...@@ -115,7 +115,7 @@ func TestUDPMultiplePacketConnWithMultipleGroupListeners(t *testing.T) {
func TestUDPPerInterfaceSinglePacketConnWithSingleGroupListener(t *testing.T) { func TestUDPPerInterfaceSinglePacketConnWithSingleGroupListener(t *testing.T) {
switch runtime.GOOS { switch runtime.GOOS {
case "plan9", "solaris", "windows": case "nacl", "plan9", "solaris", "windows":
t.Skipf("not supported on %q", runtime.GOOS) t.Skipf("not supported on %q", runtime.GOOS)
} }
if !supportsIPv6 { if !supportsIPv6 {
...@@ -158,7 +158,7 @@ func TestUDPPerInterfaceSinglePacketConnWithSingleGroupListener(t *testing.T) { ...@@ -158,7 +158,7 @@ func TestUDPPerInterfaceSinglePacketConnWithSingleGroupListener(t *testing.T) {
func TestIPSinglePacketConnWithSingleGroupListener(t *testing.T) { func TestIPSinglePacketConnWithSingleGroupListener(t *testing.T) {
switch runtime.GOOS { switch runtime.GOOS {
case "plan9", "solaris", "windows": case "nacl", "plan9", "solaris", "windows":
t.Skipf("not supported on %q", runtime.GOOS) t.Skipf("not supported on %q", runtime.GOOS)
} }
if !supportsIPv6 { if !supportsIPv6 {
...@@ -200,7 +200,7 @@ func TestIPSinglePacketConnWithSingleGroupListener(t *testing.T) { ...@@ -200,7 +200,7 @@ func TestIPSinglePacketConnWithSingleGroupListener(t *testing.T) {
func TestIPPerInterfaceSinglePacketConnWithSingleGroupListener(t *testing.T) { func TestIPPerInterfaceSinglePacketConnWithSingleGroupListener(t *testing.T) {
switch runtime.GOOS { switch runtime.GOOS {
case "darwin", "dragonfly", "plan9", "solaris", "windows": case "darwin", "dragonfly", "nacl", "plan9", "solaris", "windows":
t.Skipf("not supported on %q", runtime.GOOS) t.Skipf("not supported on %q", runtime.GOOS)
} }
if !supportsIPv6 { if !supportsIPv6 {
......
...@@ -24,7 +24,7 @@ var packetConnMulticastSocketOptionTests = []struct { ...@@ -24,7 +24,7 @@ var packetConnMulticastSocketOptionTests = []struct {
func TestPacketConnMulticastSocketOptions(t *testing.T) { func TestPacketConnMulticastSocketOptions(t *testing.T) {
switch runtime.GOOS { switch runtime.GOOS {
case "plan9", "solaris", "windows": case "nacl", "plan9", "solaris", "windows":
t.Skipf("not supported on %q", runtime.GOOS) t.Skipf("not supported on %q", runtime.GOOS)
} }
if !supportsIPv6 { if !supportsIPv6 {
......
...@@ -93,7 +93,7 @@ func benchmarkReadWriteIPv6UDP(b *testing.B, p *ipv6.PacketConn, wb, rb []byte, ...@@ -93,7 +93,7 @@ func benchmarkReadWriteIPv6UDP(b *testing.B, p *ipv6.PacketConn, wb, rb []byte,
func TestPacketConnConcurrentReadWriteUnicastUDP(t *testing.T) { func TestPacketConnConcurrentReadWriteUnicastUDP(t *testing.T) {
switch runtime.GOOS { switch runtime.GOOS {
case "plan9", "solaris", "windows": case "nacl", "plan9", "solaris", "windows":
t.Skipf("not supported on %q", runtime.GOOS) t.Skipf("not supported on %q", runtime.GOOS)
} }
if !supportsIPv6 { if !supportsIPv6 {
......
...@@ -25,7 +25,7 @@ func init() { ...@@ -25,7 +25,7 @@ func init() {
var condFatalf = func() func(*testing.T, string, ...interface{}) { var condFatalf = func() func(*testing.T, string, ...interface{}) {
// A few APIs are not implemented yet on some platforms. // A few APIs are not implemented yet on some platforms.
switch runtime.GOOS { switch runtime.GOOS {
case "darwin", "plan9", "solaris", "windows": case "darwin", "nacl", "plan9", "solaris", "windows":
return (*testing.T).Logf return (*testing.T).Logf
} }
return (*testing.T).Fatalf return (*testing.T).Fatalf
...@@ -33,7 +33,7 @@ var condFatalf = func() func(*testing.T, string, ...interface{}) { ...@@ -33,7 +33,7 @@ var condFatalf = func() func(*testing.T, string, ...interface{}) {
func TestConnInitiatorPathMTU(t *testing.T) { func TestConnInitiatorPathMTU(t *testing.T) {
switch runtime.GOOS { switch runtime.GOOS {
case "plan9", "solaris", "windows": case "nacl", "plan9", "solaris", "windows":
t.Skipf("not supported on %q", runtime.GOOS) t.Skipf("not supported on %q", runtime.GOOS)
} }
if !supportsIPv6 { if !supportsIPv6 {
...@@ -66,7 +66,7 @@ func TestConnInitiatorPathMTU(t *testing.T) { ...@@ -66,7 +66,7 @@ func TestConnInitiatorPathMTU(t *testing.T) {
func TestConnResponderPathMTU(t *testing.T) { func TestConnResponderPathMTU(t *testing.T) {
switch runtime.GOOS { switch runtime.GOOS {
case "plan9", "solaris", "windows": case "nacl", "plan9", "solaris", "windows":
t.Skipf("not supported on %q", runtime.GOOS) t.Skipf("not supported on %q", runtime.GOOS)
} }
if !supportsIPv6 { if !supportsIPv6 {
...@@ -99,7 +99,7 @@ func TestConnResponderPathMTU(t *testing.T) { ...@@ -99,7 +99,7 @@ func TestConnResponderPathMTU(t *testing.T) {
func TestPacketConnChecksum(t *testing.T) { func TestPacketConnChecksum(t *testing.T) {
switch runtime.GOOS { switch runtime.GOOS {
case "plan9", "solaris", "windows": case "nacl", "plan9", "solaris", "windows":
t.Skipf("not supported on %q", runtime.GOOS) t.Skipf("not supported on %q", runtime.GOOS)
} }
if !supportsIPv6 { if !supportsIPv6 {
......
...@@ -20,7 +20,7 @@ import ( ...@@ -20,7 +20,7 @@ import (
func TestPacketConnReadWriteUnicastUDP(t *testing.T) { func TestPacketConnReadWriteUnicastUDP(t *testing.T) {
switch runtime.GOOS { switch runtime.GOOS {
case "plan9", "solaris", "windows": case "nacl", "plan9", "solaris", "windows":
t.Skipf("not supported on %q", runtime.GOOS) t.Skipf("not supported on %q", runtime.GOOS)
} }
if !supportsIPv6 { if !supportsIPv6 {
...@@ -80,7 +80,7 @@ func TestPacketConnReadWriteUnicastUDP(t *testing.T) { ...@@ -80,7 +80,7 @@ func TestPacketConnReadWriteUnicastUDP(t *testing.T) {
func TestPacketConnReadWriteUnicastICMP(t *testing.T) { func TestPacketConnReadWriteUnicastICMP(t *testing.T) {
switch runtime.GOOS { switch runtime.GOOS {
case "plan9", "solaris", "windows": case "nacl", "plan9", "solaris", "windows":
t.Skipf("not supported on %q", runtime.GOOS) t.Skipf("not supported on %q", runtime.GOOS)
} }
if !supportsIPv6 { if !supportsIPv6 {
......
...@@ -16,7 +16,7 @@ import ( ...@@ -16,7 +16,7 @@ import (
func TestConnUnicastSocketOptions(t *testing.T) { func TestConnUnicastSocketOptions(t *testing.T) {
switch runtime.GOOS { switch runtime.GOOS {
case "plan9", "solaris", "windows": case "nacl", "plan9", "solaris", "windows":
t.Skipf("not supported on %q", runtime.GOOS) t.Skipf("not supported on %q", runtime.GOOS)
} }
if !supportsIPv6 { if !supportsIPv6 {
...@@ -52,7 +52,7 @@ var packetConnUnicastSocketOptionTests = []struct { ...@@ -52,7 +52,7 @@ var packetConnUnicastSocketOptionTests = []struct {
func TestPacketConnUnicastSocketOptions(t *testing.T) { func TestPacketConnUnicastSocketOptions(t *testing.T) {
switch runtime.GOOS { switch runtime.GOOS {
case "plan9", "solaris", "windows": case "nacl", "plan9", "solaris", "windows":
t.Skipf("not supported on %q", runtime.GOOS) t.Skipf("not supported on %q", runtime.GOOS)
} }
if !supportsIPv6 { if !supportsIPv6 {
......
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