Commit d3b1e661 authored by Mikio Hara's avatar Mikio Hara

go.net/ipv4: disable full stack tests on nacl, solaris

LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/165150043
parent bd815cb7
...@@ -19,7 +19,7 @@ import ( ...@@ -19,7 +19,7 @@ import (
func TestPacketConnReadWriteMulticastUDP(t *testing.T) { func TestPacketConnReadWriteMulticastUDP(t *testing.T) {
switch runtime.GOOS { switch runtime.GOOS {
case "plan9", "windows": case "nacl", "plan9", "solaris", "windows":
t.Skipf("not supported on %q", runtime.GOOS) t.Skipf("not supported on %q", runtime.GOOS)
} }
ifi := nettest.RoutedInterface("ip4", net.FlagUp|net.FlagMulticast|net.FlagLoopback) ifi := nettest.RoutedInterface("ip4", net.FlagUp|net.FlagMulticast|net.FlagLoopback)
...@@ -86,7 +86,7 @@ func TestPacketConnReadWriteMulticastUDP(t *testing.T) { ...@@ -86,7 +86,7 @@ func TestPacketConnReadWriteMulticastUDP(t *testing.T) {
func TestPacketConnReadWriteMulticastICMP(t *testing.T) { func TestPacketConnReadWriteMulticastICMP(t *testing.T) {
switch runtime.GOOS { switch runtime.GOOS {
case "plan9", "windows": case "nacl", "plan9", "solaris", "windows":
t.Skipf("not supported on %q", runtime.GOOS) t.Skipf("not supported on %q", runtime.GOOS)
} }
if os.Getuid() != 0 { if os.Getuid() != 0 {
......
...@@ -22,7 +22,7 @@ var udpMultipleGroupListenerTests = []net.Addr{ ...@@ -22,7 +22,7 @@ var udpMultipleGroupListenerTests = []net.Addr{
func TestUDPSinglePacketConnWithMultipleGroupListeners(t *testing.T) { func TestUDPSinglePacketConnWithMultipleGroupListeners(t *testing.T) {
switch runtime.GOOS { switch runtime.GOOS {
case "plan9", "windows": case "nacl", "plan9", "solaris", "windows":
t.Skipf("not supported on %q", runtime.GOOS) t.Skipf("not supported on %q", runtime.GOOS)
} }
if testing.Short() { if testing.Short() {
...@@ -62,7 +62,7 @@ func TestUDPSinglePacketConnWithMultipleGroupListeners(t *testing.T) { ...@@ -62,7 +62,7 @@ func TestUDPSinglePacketConnWithMultipleGroupListeners(t *testing.T) {
func TestUDPMultiplePacketConnWithMultipleGroupListeners(t *testing.T) { func TestUDPMultiplePacketConnWithMultipleGroupListeners(t *testing.T) {
switch runtime.GOOS { switch runtime.GOOS {
case "plan9", "windows": case "nacl", "plan9", "solaris", "windows":
t.Skipf("not supported on %q", runtime.GOOS) t.Skipf("not supported on %q", runtime.GOOS)
} }
if testing.Short() { if testing.Short() {
...@@ -114,7 +114,7 @@ func TestUDPMultiplePacketConnWithMultipleGroupListeners(t *testing.T) { ...@@ -114,7 +114,7 @@ func TestUDPMultiplePacketConnWithMultipleGroupListeners(t *testing.T) {
func TestUDPPerInterfaceSinglePacketConnWithSingleGroupListener(t *testing.T) { func TestUDPPerInterfaceSinglePacketConnWithSingleGroupListener(t *testing.T) {
switch runtime.GOOS { switch runtime.GOOS {
case "plan9", "windows": case "nacl", "plan9", "solaris", "windows":
t.Skipf("not supported on %q", runtime.GOOS) t.Skipf("not supported on %q", runtime.GOOS)
} }
if testing.Short() { if testing.Short() {
...@@ -157,7 +157,7 @@ func TestUDPPerInterfaceSinglePacketConnWithSingleGroupListener(t *testing.T) { ...@@ -157,7 +157,7 @@ func TestUDPPerInterfaceSinglePacketConnWithSingleGroupListener(t *testing.T) {
func TestIPSingleRawConnWithSingleGroupListener(t *testing.T) { func TestIPSingleRawConnWithSingleGroupListener(t *testing.T) {
switch runtime.GOOS { switch runtime.GOOS {
case "plan9", "windows": case "nacl", "plan9", "solaris", "windows":
t.Skipf("not supported on %q", runtime.GOOS) t.Skipf("not supported on %q", runtime.GOOS)
} }
if testing.Short() { if testing.Short() {
...@@ -202,7 +202,7 @@ func TestIPSingleRawConnWithSingleGroupListener(t *testing.T) { ...@@ -202,7 +202,7 @@ func TestIPSingleRawConnWithSingleGroupListener(t *testing.T) {
func TestIPPerInterfaceSingleRawConnWithSingleGroupListener(t *testing.T) { func TestIPPerInterfaceSingleRawConnWithSingleGroupListener(t *testing.T) {
switch runtime.GOOS { switch runtime.GOOS {
case "plan9", "windows": case "nacl", "plan9", "solaris", "windows":
t.Skipf("not supported on %q", runtime.GOOS) t.Skipf("not supported on %q", runtime.GOOS)
} }
if testing.Short() { if testing.Short() {
......
...@@ -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": case "nacl", "plan9", "solaris":
t.Skipf("not supported on %q", runtime.GOOS) t.Skipf("not supported on %q", runtime.GOOS)
} }
ifi := nettest.RoutedInterface("ip4", net.FlagUp|net.FlagMulticast|net.FlagLoopback) ifi := nettest.RoutedInterface("ip4", net.FlagUp|net.FlagMulticast|net.FlagLoopback)
...@@ -48,7 +48,7 @@ func TestPacketConnMulticastSocketOptions(t *testing.T) { ...@@ -48,7 +48,7 @@ func TestPacketConnMulticastSocketOptions(t *testing.T) {
func TestRawConnMulticastSocketOptions(t *testing.T) { func TestRawConnMulticastSocketOptions(t *testing.T) {
switch runtime.GOOS { switch runtime.GOOS {
case "plan9": case "nacl", "plan9", "solaris":
t.Skipf("not supported on %q", runtime.GOOS) t.Skipf("not supported on %q", runtime.GOOS)
} }
if os.Getuid() != 0 { if os.Getuid() != 0 {
......
...@@ -90,7 +90,7 @@ func benchmarkReadWriteIPv4UDP(b *testing.B, p *ipv4.PacketConn, wb, rb []byte, ...@@ -90,7 +90,7 @@ func benchmarkReadWriteIPv4UDP(b *testing.B, p *ipv4.PacketConn, wb, rb []byte,
func TestPacketConnReadWriteUnicastUDP(t *testing.T) { func TestPacketConnReadWriteUnicastUDP(t *testing.T) {
switch runtime.GOOS { switch runtime.GOOS {
case "plan9", "windows": case "nacl", "plan9", "solaris", "windows":
t.Skipf("not supported on %q", runtime.GOOS) t.Skipf("not supported on %q", runtime.GOOS)
} }
ifi := nettest.RoutedInterface("ip4", net.FlagUp|net.FlagLoopback) ifi := nettest.RoutedInterface("ip4", net.FlagUp|net.FlagLoopback)
...@@ -140,7 +140,7 @@ func TestPacketConnReadWriteUnicastUDP(t *testing.T) { ...@@ -140,7 +140,7 @@ func TestPacketConnReadWriteUnicastUDP(t *testing.T) {
func TestPacketConnReadWriteUnicastICMP(t *testing.T) { func TestPacketConnReadWriteUnicastICMP(t *testing.T) {
switch runtime.GOOS { switch runtime.GOOS {
case "plan9", "windows": case "nacl", "plan9", "solaris", "windows":
t.Skipf("not supported on %q", runtime.GOOS) t.Skipf("not supported on %q", runtime.GOOS)
} }
if os.Getuid() != 0 { if os.Getuid() != 0 {
...@@ -215,7 +215,7 @@ func TestPacketConnReadWriteUnicastICMP(t *testing.T) { ...@@ -215,7 +215,7 @@ func TestPacketConnReadWriteUnicastICMP(t *testing.T) {
func TestRawConnReadWriteUnicastICMP(t *testing.T) { func TestRawConnReadWriteUnicastICMP(t *testing.T) {
switch runtime.GOOS { switch runtime.GOOS {
case "plan9", "windows": case "nacl", "plan9", "solaris", "windows":
t.Skipf("not supported on %q", runtime.GOOS) t.Skipf("not supported on %q", runtime.GOOS)
} }
if os.Getuid() != 0 { if os.Getuid() != 0 {
......
...@@ -17,7 +17,7 @@ import ( ...@@ -17,7 +17,7 @@ import (
func TestConnUnicastSocketOptions(t *testing.T) { func TestConnUnicastSocketOptions(t *testing.T) {
switch runtime.GOOS { switch runtime.GOOS {
case "plan9": case "nacl", "plan9", "solaris":
t.Skipf("not supported on %q", runtime.GOOS) t.Skipf("not supported on %q", runtime.GOOS)
} }
ifi := nettest.RoutedInterface("ip4", net.FlagUp|net.FlagLoopback) ifi := nettest.RoutedInterface("ip4", net.FlagUp|net.FlagLoopback)
...@@ -54,7 +54,7 @@ var packetConnUnicastSocketOptionTests = []struct { ...@@ -54,7 +54,7 @@ var packetConnUnicastSocketOptionTests = []struct {
func TestPacketConnUnicastSocketOptions(t *testing.T) { func TestPacketConnUnicastSocketOptions(t *testing.T) {
switch runtime.GOOS { switch runtime.GOOS {
case "plan9": case "nacl", "plan9", "solaris":
t.Skipf("not supported on %q", runtime.GOOS) t.Skipf("not supported on %q", runtime.GOOS)
} }
ifi := nettest.RoutedInterface("ip4", net.FlagUp|net.FlagLoopback) ifi := nettest.RoutedInterface("ip4", net.FlagUp|net.FlagLoopback)
...@@ -78,7 +78,7 @@ func TestPacketConnUnicastSocketOptions(t *testing.T) { ...@@ -78,7 +78,7 @@ func TestPacketConnUnicastSocketOptions(t *testing.T) {
func TestRawConnUnicastSocketOptions(t *testing.T) { func TestRawConnUnicastSocketOptions(t *testing.T) {
switch runtime.GOOS { switch runtime.GOOS {
case "plan9": case "nacl", "plan9", "solaris":
t.Skipf("not supported on %q", runtime.GOOS) t.Skipf("not supported on %q", runtime.GOOS)
} }
if os.Getuid() != 0 { if os.Getuid() != 0 {
......
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