aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/net/dialgoogle_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/net/dialgoogle_test.go')
-rw-r--r--libgo/go/net/dialgoogle_test.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/libgo/go/net/dialgoogle_test.go b/libgo/go/net/dialgoogle_test.go
index 426e2ff..dd3c4ba 100644
--- a/libgo/go/net/dialgoogle_test.go
+++ b/libgo/go/net/dialgoogle_test.go
@@ -116,7 +116,12 @@ func TestDialGoogleIPv6(t *testing.T) {
return
}
// Only run tcp6 if the kernel will take it.
- if !*testIPv6 || !supportsIPv6 {
+ if !supportsIPv6 {
+ t.Logf("skipping test; ipv6 is not supported")
+ return
+ }
+ if !*testIPv6 {
+ t.Logf("test disabled; use -ipv6 to enable")
return
}