Skip to content

Commit c6a2dad

Browse files
committed
net: disable TestIPv6WriteMsgUDPAddrPortTargetAddrIPVersion [sic] on DragonflyBSD
Like OpenBSD, DragonflyBSD does not do IPv4-in-IPv6 mapping. For #52264. Change-Id: Id41606e75652e684f2e0e98c6459156641aec9b5 Reviewed-on: https://go-review.googlesource.com/c/go/+/420775 Reviewed-by: Ian Lance Taylor <[email protected]> Run-TryBot: Russ Cox <[email protected]> TryBot-Result: Gopher Robot <[email protected]>
1 parent 29b9a32 commit c6a2dad

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/net/udpsock_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,9 @@ func TestIPv6WriteMsgUDPAddrPortTargetAddrIPVersion(t *testing.T) {
633633
}
634634

635635
switch runtime.GOOS {
636-
case "openbsd":
636+
case "dragonfly", "openbsd":
637+
// DragonflyBSD's IPv6 sockets are always IPv6-only, according to the man page:
638+
// https://www.dragonflybsd.org/cgi/web-man?command=ip6 (search for IPV6_V6ONLY).
637639
// OpenBSD's IPv6 sockets are always IPv6-only, according to the man page:
638640
// https://man.openbsd.org/ip6#IPV6_V6ONLY
639641
t.Skipf("skipping on %v", runtime.GOOS)

0 commit comments

Comments
 (0)