8000 quic: skip tests which depend on unimplemented UDP functions on Plan 9 · golang/net@77708f7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 77708f7

Browse files
millerresearchthanm
authored andcommitted
quic: skip tests which depend on unimplemented UDP functions on Plan 9
The ReadMsgUDP and WriteMsgUDP methods of UDPConn are not implemented (yet?) on Plan 9. Skip tests which require them. Fixes golang/go#68288 Change-Id: Ic6c81b19322d589c10b16da61e9b89284294be05 Reviewed-on: https://go-review.googlesource.com/c/net/+/596795 Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Than McIntosh <thanm@google.com>
1 parent 9617c63 commit 77708f7

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

quic/endpoint_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import (
1313
"io"
1414
"log/slog"
1515
"net/netip"
16+
"runtime"
1617
"testing"
1718
"time"
1819

@@ -69,6 +70,10 @@ func TestStreamTransfer(t *testing.T) {
6970
}
7071

7172
func newLocalConnPair(t testing.TB, conf1, conf2 *Config) (clientConn, serverConn *Conn) {
73+
switch runtime.GOOS {
74+
case "plan9":
75+
t.Skipf("ReadMsgUDP not supported on %s", runtime.GOOS)
76+
}
7277
t.Helper()
7378
ctx := context.Background()
7479
e1 := newLocalEndpoint(t, serverSide, conf1)

quic/udp_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ func runUDPTest(t *testing.T, f func(t *testing.T, u udpTest)) {
129129
if test.srcNet == "udp6" && test.dstNet == "udp" {
130130
t.Skipf("%v: no support for mapping IPv4 address to IPv6", runtime.GOOS)
131131
}
132+
case "plan9":
133+
t.Skipf("ReadMsgUDP not supported on %s", runtime.GOOS)
132134
}
133135
if runtime.GOARCH == "wasm" && test.srcNet == "udp6" {
134136
t.Skipf("%v: IPv6 tests fail when using wasm fake net", runtime.GOARCH)

0 commit comments

Comments
 (0)
0