net: add a bit clarified multicast listener tests

Also adds -external flag to allow use of external networks on tests.

R=rsc
CC=golang-dev
https://golang.org/cl/5693043
This commit is contained in:
Mikio Hara 2012-02-23 12:16:43 +09:00
parent ebae73bb24
commit adbadf444d
4 changed files with 123 additions and 86 deletions

View file

@ -95,7 +95,7 @@ func doTest(t *testing.T, network, listenaddr, dialaddr string) {
t.Logf("Test %q %q %q", network, listenaddr, dialaddr)
switch listenaddr {
case "", "0.0.0.0", "[::]", "[::ffff:0.0.0.0]":
if testing.Short() || avoidMacFirewall {
if testing.Short() || !*testExternal {
t.Logf("skip wildcard listen during short test")
return
}