Skip to content

Commit cb814bd

Browse files
millerresearchgopherbot
authored andcommitted
net: skip TestIPv4WriteMsgUDPAddrPort on plan9
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. Fixes golang#75017 Change-Id: Iaa0e6ecdba0938736d8f675fcac43c46db34cb5d Reviewed-on: https://go-review.googlesource.com/c/go/+/696095 Auto-Submit: Damien Neil <[email protected]> Reviewed-by: Damien Neil <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
1 parent 78a3968 commit cb814bd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/net/udpsock_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -710,6 +710,11 @@ func TestIPv6WriteMsgUDPAddrPortTargetAddrIPVersion(t *testing.T) {
710710
// WriteMsgUDPAddrPort accepts IPv4 and IPv4-mapped IPv6 destination addresses,
711711
// and rejects IPv6 destination addresses on a "udp4" connection.
712712
func TestIPv4WriteMsgUDPAddrPortTargetAddrIPVersion(t *testing.T) {
713+
switch runtime.GOOS {
714+
case "plan9":
715+
t.Skipf("not supported on %s", runtime.GOOS)
716+
}
717+
713718
if !testableNetwork("udp4") {
714719
t.Skipf("skipping: udp4 not available")
715720
}

0 commit comments

Comments
 (0)