mirror of
https://github.com/golang/go.git
synced 2026-04-03 17:59:55 +09:00
net: skip TestListenIPv6WildcardAddr on DragonFly BSD and OpenBSD
TestListenIPv6WildcardAddr currently fails on OpenBSD. While still unconfirmed, this is likely because net.ipStackCapabilities.probe treats dragonfly and openbsd GOOS specially, due to their lack of support for IPV6_V6ONLY=0. The behavior that TestListenIPv6WildcardAddr is testing is still beneficial for other GOOS. Therefore, skip this test for dragonfly and openbsd for now, until the port maintainers can take a deeper look. For #77945 Change-Id: I1a233079d90ef20ec8c0172e61fdb8b847a2625f Reviewed-on: https://go-review.googlesource.com/c/go/+/751981 Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> Auto-Submit: Nicholas Husin <husin@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Nicholas Husin <husin@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
This commit is contained in:
committed by
Gopher Robot
parent
0b5e00624f
commit
4270a44ed7
@@ -283,8 +283,15 @@ func TestAddrListPartition(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestListenIPv6WildcardAddr(t *testing.T) {
|
||||
if runtime.GOOS == "js" || runtime.GOOS == "wasip1" {
|
||||
switch runtime.GOOS {
|
||||
case "js", "wasip1":
|
||||
t.Skip("fake networking does not implement [::] wildcard address assertions")
|
||||
case "dragonfly", "openbsd":
|
||||
// We are assuming that this test will not work on DragonFly BSD and
|
||||
// OpenBSD due to their lack of support for IPV6_V6ONLY=0. However,
|
||||
// this assumption is still unconfirmed. For context, see:
|
||||
// https://go.dev/issue/77945#issuecomment-4008106922
|
||||
t.Skip("The latest DragonFly BSD and OpenBSD kernels do not support IPV6_V6ONLY=0")
|
||||
}
|
||||
if !supportsIPv6() {
|
||||
t.Skip("IPv6 not supported")
|
||||
|
||||
Reference in New Issue
Block a user