Commit 4706ce30 authored by Russ Cox's avatar Russ Cox

net: stop Mac popups

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/4559059
parent 15dcdf75
...@@ -92,10 +92,13 @@ func connect(t *testing.T, network, addr string, isEmpty bool) { ...@@ -92,10 +92,13 @@ func connect(t *testing.T, network, addr string, isEmpty bool) {
} }
func doTest(t *testing.T, network, listenaddr, dialaddr string) { func doTest(t *testing.T, network, listenaddr, dialaddr string) {
if listenaddr == "" { t.Logf("Test %q %q %q\n", network, listenaddr, dialaddr)
t.Logf("Test %s %s %s\n", network, "<nil>", dialaddr) switch listenaddr {
} else { case "", "0.0.0.0", "[::]", "[::ffff:0.0.0.0]":
t.Logf("Test %s %s %s\n", network, listenaddr, dialaddr) if testing.Short() || avoidMacFirewall {
t.Logf("skip wildcard listen during short test")
return
}
} }
listening := make(chan string) listening := make(chan string)
done := make(chan int) done := make(chan int)
......
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