mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
net: don't run IP stack required tests on IP stack disabled kernels
This change doesn't work perfectly on IPv6-only kernels including CLAT enabled kernels, but works enough on IPv4-only kernels. Fixes #10721. Updates #10729. Change-Id: I7db0e572e252aa0a9f9f54c8e557955077b72e44 Reviewed-on: https://go-review.googlesource.com/9777 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
76d67eaccc
commit
f963cb707e
4 changed files with 25 additions and 6 deletions
|
|
@ -155,7 +155,7 @@ func TestDialerDualStackFDLeak(t *testing.T) {
|
|||
t.Skipf("not implemented a way to cancel dial racers in TCP SYN-SENT state on %s", runtime.GOOS)
|
||||
}
|
||||
if !supportsIPv4 || !supportsIPv6 {
|
||||
t.Skip("ipv4 or ipv6 is not supported")
|
||||
t.Skip("both IPv4 and IPv6 are required")
|
||||
}
|
||||
|
||||
origTestHookLookupIP := testHookLookupIP
|
||||
|
|
@ -247,7 +247,7 @@ func TestDialerLocalAddr(t *testing.T) {
|
|||
|
||||
func TestDialerDualStack(t *testing.T) {
|
||||
if !supportsIPv4 || !supportsIPv6 {
|
||||
t.Skip("ipv4 or ipv6 is not supported")
|
||||
t.Skip("both IPv4 and IPv6 are required")
|
||||
}
|
||||
|
||||
origTestHookLookupIP := testHookLookupIP
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue