ipv6: OpenBSD does not appear to support multicast loopback
Skip the tests for it, as we already skip them on FreeBSD.
Fixes golang/go#42064
Change-Id: I058f25309020367e686625033b4f25cb614c7f99
Reviewed-on: https://go-review.googlesource.com/c/net/+/366355
Trust: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
diff --git a/ipv6/helper_unix_test.go b/ipv6/helper_unix_test.go
index a154f7c..5ccff9d 100644
--- a/ipv6/helper_unix_test.go
+++ b/ipv6/helper_unix_test.go
@@ -20,6 +20,10 @@
// kernels don't deliver link-local scoped multicast
// packets correctly.
return fmt.Sprintf("not supported on %s/%s", runtime.GOOS, runtime.GOARCH), false
+ case "openbsd":
+ // Multicast packets don't seem to be delivered locally.
+ // Issue 42064.
+ return fmt.Sprintf("not supported on %s/%s", runtime.GOOS, runtime.GOARCH), false
default:
return "", true
}
diff --git a/ipv6/multicast_test.go b/ipv6/multicast_test.go
index 95920f1..daf09e7 100644
--- a/ipv6/multicast_test.go
+++ b/ipv6/multicast_test.go
@@ -28,11 +28,6 @@
}
func TestPacketConnReadWriteMulticastUDP(t *testing.T) {
- switch os.Getenv("GO_BUILDER_NAME") {
- case "openbsd-amd64-68", "openbsd-386-68", "openbsd-arm-jsing", "openbsd-arm64-jsing", "openbsd-mips64-jsing":
- t.Skip(`this test is currently failing on OpenBSD 6.8 builders with "raw-read udp6: i/o timeout" ` +
- `and needs investigation, see golang.org/issue/42064`)
- }
switch runtime.GOOS {
case "fuchsia", "hurd", "js", "nacl", "plan9", "windows":
t.Skipf("not supported on %s", runtime.GOOS)