diff options
author | Russ Cox <rsc@golang.org> | 2009-11-10 17:47:38 -0800 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-11-10 17:47:38 -0800 |
commit | e1f2a8d100562a1f763771e37574cd78883e01d5 (patch) | |
tree | 329fe46124822de7024cee8a8fc8edf882e5f244 | |
parent | 4331058e5813886e9ba54e0f5a5cf0b2dba86ee4 (diff) | |
download | golang-e1f2a8d100562a1f763771e37574cd78883e01d5.tar.gz |
net: disable ipv6 test if we know kernel won't take it.
R=agl, agl1
CC=golang-dev
http://codereview.appspot.com/153048
-rw-r--r-- | src/pkg/net/dialgoogle_test.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/pkg/net/dialgoogle_test.go b/src/pkg/net/dialgoogle_test.go index 8d8848b04..192540f66 100644 --- a/src/pkg/net/dialgoogle_test.go +++ b/src/pkg/net/dialgoogle_test.go @@ -80,6 +80,10 @@ func TestDialGoogle(t *testing.T) { preferIPv4 = false; } } - doDial(t, "tcp6", addr); + + // Only run tcp6 if the kernel will take it. + if kernelSupportsIPv6() { + doDial(t, "tcp6", addr) + } } } |