]> Cypherpunks repositories - gostls13.git/commitdiff
[release-branch.go1.25] net: skip TestIPv4WriteMsgUDPAddrPort on plan9
authorRichard Miller <millerresearch@gmail.com>
Thu, 14 Aug 2025 15:25:56 +0000 (16:25 +0100)
committerGopher Robot <gobot@golang.org>
Tue, 16 Sep 2025 17:04:01 +0000 (10:04 -0700)
This test uses method (*UDPConn).WriteMsgUDPAddrPort, which is
not supported on Plan 9. The test needs to be skipped, like
for example TestAllocs which is already skipped for the
same reason.

For #75017
Fixes #75357

Change-Id: Iaa0e6ecdba0938736d8f675fcac43c46db34cb5d
Reviewed-on: https://go-review.googlesource.com/c/go/+/696095
Auto-Submit: Damien Neil <dneil@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
(cherry picked from commit cb814bd5bc3f0575e8d0e26370c05456770cb3da)
Reviewed-on: https://go-review.googlesource.com/c/go/+/704280
Reviewed-by: Mark Freeman <markfreeman@google.com>
Auto-Submit: Michael Knyszek <mknyszek@google.com>

src/net/udpsock_test.go

index 7ad8a585b07e335ecbc1686ebf967a724c8d39fe..3c8da43bdd9b61ef87bcf9fa8bfedb5db83d89dc 100644 (file)
@@ -710,6 +710,11 @@ func TestIPv6WriteMsgUDPAddrPortTargetAddrIPVersion(t *testing.T) {
 // WriteMsgUDPAddrPort accepts IPv4 and IPv4-mapped IPv6 destination addresses,
 // and rejects IPv6 destination addresses on a "udp4" connection.
 func TestIPv4WriteMsgUDPAddrPortTargetAddrIPVersion(t *testing.T) {
+       switch runtime.GOOS {
+       case "plan9":
+               t.Skipf("not supported on %s", runtime.GOOS)
+       }
+
        if !testableNetwork("udp4") {
                t.Skipf("skipping: udp4 not available")
        }