]> Cypherpunks repositories - gostls13.git/commitdiff
net: disable ipv6 test if we know kernel won't take it.
authorRuss Cox <rsc@golang.org>
Wed, 11 Nov 2009 01:47:38 +0000 (17:47 -0800)
committerRuss Cox <rsc@golang.org>
Wed, 11 Nov 2009 01:47:38 +0000 (17:47 -0800)
R=agl, agl1
CC=golang-dev
https://golang.org/cl/153048

src/pkg/net/dialgoogle_test.go

index 8d8848b04ff61e9f8ba31fb51e56da0cb8219891..192540f6699a257e702d1dfe8148c751765a2d88 100644 (file)
@@ -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)
+               }
        }
 }