Commit 4e7f765b authored by Mikio Hara's avatar Mikio Hara

net: disable IPv6 multicast tests unless external IPv6 connection is present

R=rsc
CC=golang-dev
https://golang.org/cl/6398052
parent 9de61e7c
...@@ -59,7 +59,7 @@ func TestMulticastListener(t *testing.T) { ...@@ -59,7 +59,7 @@ func TestMulticastListener(t *testing.T) {
} }
for _, tt := range multicastListenerTests { for _, tt := range multicastListenerTests {
if tt.ipv6 && (!supportsIPv6 || os.Getuid() != 0) { if tt.ipv6 && (!*testIPv6 || !supportsIPv6 || os.Getuid() != 0) {
continue continue
} }
ifi, err := availMulticastInterface(t, tt.flags) ifi, err := availMulticastInterface(t, tt.flags)
......
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