Skip to content

Commit b1772d9

Browse files
committed
x/net/ipv6: disable full stack tests on nacl
LGTM=iant R=iant CC=golang-codereviews https://golang.org/cl/172900043
1 parent 89143d4 commit b1772d9

8 files changed

+19
-19
lines changed

ipv6/icmp_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func TestICMPString(t *testing.T) {
3535

3636
func TestICMPFilter(t *testing.T) {
3737
switch runtime.GOOS {
38-
case "plan9", "solaris", "windows":
38+
case "nacl", "plan9", "solaris", "windows":
3939
t.Skipf("not supported on %q", runtime.GOOS)
4040
}
4141

@@ -68,7 +68,7 @@ func TestICMPFilter(t *testing.T) {
6868

6969
func TestSetICMPFilter(t *testing.T) {
7070
switch runtime.GOOS {
71-
case "plan9", "solaris", "windows":
71+
case "nacl", "plan9", "solaris", "windows":
7272
t.Skipf("not supported on %q", runtime.GOOS)
7373
}
7474
if !supportsIPv6 {

ipv6/multicast_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func TestPacketConnReadWriteMulticastUDP(t *testing.T) {
2323
case "freebsd": // due to a bug on loopback marking
2424
// See http://www.freebsd.org/cgi/query-pr.cgi?pr=180065.
2525
t.Skipf("not supported on %q", runtime.GOOS)
26-
case "plan9", "solaris", "windows":
26+
case "nacl", "plan9", "solaris", "windows":
2727
t.Skipf("not supported on %q", runtime.GOOS)
2828
}
2929
if !supportsIPv6 {
@@ -101,7 +101,7 @@ func TestPacketConnReadWriteMulticastUDP(t *testing.T) {
101101

102102
func TestPacketConnReadWriteMulticastICMP(t *testing.T) {
103103
switch runtime.GOOS {
104-
case "plan9", "solaris", "windows":
104+
case "nacl", "plan9", "solaris", "windows":
105105
t.Skipf("not supported on %q", runtime.GOOS)
106106
}
107107
if !supportsIPv6 {

ipv6/multicastlistener_test.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ var udpMultipleGroupListenerTests = []net.Addr{
2323

2424
func TestUDPSinglePacketConnWithMultipleGroupListeners(t *testing.T) {
2525
switch runtime.GOOS {
26-
case "plan9", "solaris", "windows":
26+
case "nacl", "plan9", "solaris", "windows":
2727
t.Skipf("not supported on %q", runtime.GOOS)
2828
}
2929
if !supportsIPv6 {
@@ -63,7 +63,7 @@ func TestUDPSinglePacketConnWithMultipleGroupListeners(t *testing.T) {
6363

6464
func TestUDPMultiplePacketConnWithMultipleGroupListeners(t *testing.T) {
6565
switch runtime.GOOS {
66-
case "plan9", "solaris", "windows":
66+
case "nacl", "plan9", "solaris", "windows":
6767
t.Skipf("not supported on %q", runtime.GOOS)
6868
}
6969
if !supportsIPv6 {
@@ -115,7 +115,7 @@ func TestUDPMultiplePacketConnWithMultipleGroupListeners(t *testing.T) {
115115

116116
func TestUDPPerInterfaceSinglePacketConnWithSingleGroupListener(t *testing.T) {
117117
switch runtime.GOOS {
118-
case "plan9", "solaris", "windows":
118+
case "nacl", "plan9", "solaris", "windows":
119119
t.Skipf("not supported on %q", runtime.GOOS)
120120
}
121121
if !supportsIPv6 {
@@ -158,7 +158,7 @@ func TestUDPPerInterfaceSinglePacketConnWithSingleGroupListener(t *testing.T) {
158158

159159
func TestIPSinglePacketConnWithSingleGroupListener(t *testing.T) {
160160
switch runtime.GOOS {
161-
case "plan9", "solaris", "windows":
161+
case "nacl", "plan9", "solaris", "windows":
162162
t.Skipf("not supported on %q", runtime.GOOS)
163163
}
164164
if !supportsIPv6 {
@@ -200,7 +200,7 @@ func TestIPSinglePacketConnWithSingleGroupListener(t *testing.T) {
200200

201201
func TestIPPerInterfaceSinglePacketConnWithSingleGroupListener(t *testing.T) {
202202
switch runtime.GOOS {
203-
case "darwin", "dragonfly", "plan9", "solaris", "windows":
203+
case "darwin", "dragonfly", "nacl", "plan9", "solaris", "windows":
204204
t.Skipf("not supported on %q", runtime.GOOS)
205205
}
206206
if !supportsIPv6 {

ipv6/multicastsockopt_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ var packetConnMulticastSocketOptionTests = []struct {
2424

2525
func TestPacketConnMulticastSocketOptions(t *testing.T) {
2626
switch runtime.GOOS {
27-
case "plan9", "solaris", "windows":
27+
case "nacl", "plan9", "solaris", "windows":
2828
t.Skipf("not supported on %q", runtime.GOOS)
2929
}
3030
if !supportsIPv6 {

ipv6/readwrite_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ func benchmarkReadWriteIPv6UDP(b *testing.B, p *ipv6.PacketConn, wb, rb []byte,
9393

9494
func TestPacketConnConcurrentReadWriteUnicastUDP(t *testing.T) {
9595
switch runtime.GOOS {
96-
case "plan9", "solaris", "windows":
96+
case "nacl", "plan9", "solaris", "windows":
9797
t.Skipf("not supported on %q", runtime.GOOS)
9898
}
9999
if !supportsIPv6 {

ipv6/sockopt_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ func init() {
2525
var condFatalf = func() func(*testing.T, string, ...interface{}) {
2626
// A few APIs are not implemented yet on some platforms.
2727
switch runtime.GOOS {
28-
case "darwin", "plan9", "solaris", "windows":
28+
case "darwin", "nacl", "plan9", "solaris", "windows":
2929
return (*testing.T).Logf
3030
}
3131
return (*testing.T).Fatalf
3232
}()
3333

3434
func TestConnInitiatorPathMTU(t *testing.T) {
3535
switch runtime.GOOS {
36-
case "plan9", "solaris", "windows":
36+
case "nacl", "plan9", "solaris", "windows":
3737
t.Skipf("not supported on %q", runtime.GOOS)
3838
}
3939
if !supportsIPv6 {
@@ -66,7 +66,7 @@ func TestConnInitiatorPathMTU(t *testing.T) {
6666

6767
func TestConnResponderPathMTU(t *testing.T) {
6868
switch runtime.GOOS {
69-
case "plan9", "solaris", "windows":
69+
case "nacl", "plan9", "solaris", "windows":
7070
t.Skipf("not supported on %q", runtime.GOOS)
7171
}
7272
if !supportsIPv6 {
@@ -99,7 +99,7 @@ func TestConnResponderPathMTU(t *testing.T) {
9999

100100
func TestPacketConnChecksum(t *testing.T) {
101101
switch runtime.GOOS {
102-
case "plan9", "solaris", "windows":
102+
case "nacl", "plan9", "solaris", "windows":
103103
t.Skipf("not supported on %q", runtime.GOOS)
104104
}
105105
if !supportsIPv6 {

ipv6/unicast_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020

2121
func TestPacketConnReadWriteUnicastUDP(t *testing.T) {
2222
switch runtime.GOOS {
23-
case "plan9", "solaris", "windows":
23+
case "nacl", "plan9", "solaris", "windows":
2424
t.Skipf("not supported on %q", runtime.GOOS)
2525
}
2626
if !supportsIPv6 {
@@ -80,7 +80,7 @@ func TestPacketConnReadWriteUnicastUDP(t *testing.T) {
8080

8181
func TestPacketConnReadWriteUnicastICMP(t *testing.T) {
8282
switch runtime.GOOS {
83-
case "plan9", "solaris", "windows":
83+
case "nacl", "plan9", "solaris", "windows":
8484
t.Skipf("not supported on %q", runtime.GOOS)
8585
}
8686
if !supportsIPv6 {

ipv6/unicastsockopt_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616

1717
func TestConnUnicastSocketOptions(t *testing.T) {
1818
switch runtime.GOOS {
19-
case "plan9", "solaris", "windows":
19+
case "nacl", "plan9", "solaris", "windows":
2020
t.Skipf("not supported on %q", runtime.GOOS)
2121
}
2222
if !supportsIPv6 {
@@ -52,7 +52,7 @@ var packetConnUnicastSocketOptionTests = []struct {
5252

5353
func TestPacketConnUnicastSocketOptions(t *testing.T) {
5454
switch runtime.GOOS {
55-
case "plan9", "solaris", "windows":
55+
case "nacl", "plan9", "solaris", "windows":
5656
t.Skipf("not supported on %q", runtime.GOOS)
5757
}
5858
if !supportsIPv6 {

0 commit comments

Comments
 (0)