1
0
mirror of https://github.com/golang/go synced 2024-11-23 16:30:06 -07:00

net: disable WriteMsgUDP tests on nacl, windows (fix build)

Change-Id: I695b89ec2b63233d94c49c4a40a57b50350ec67c
Reviewed-on: https://go-review.googlesource.com/4350
TryBot: Mikio Hara <mikioh.mikioh@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Mikio Hara 2015-02-10 17:21:03 +09:00
parent a9a6757c64
commit f43a8dea92

View File

@ -132,8 +132,13 @@ func testWriteToConn(t *testing.T, raddr string) {
t.Fatalf("WriteMsgUDP should fail as ErrWriteToConnected: %v", err)
}
_, _, err = c.(*UDPConn).WriteMsgUDP([]byte("Connection-oriented mode socket"), nil, nil)
if err != nil {
t.Fatal(err)
switch runtime.GOOS {
case "nacl", "windows": // see golang.org/issue/9252
t.Skipf("not implemented yet on %s", runtime.GOOS)
default:
if err != nil {
t.Fatal(err)
}
}
}
@ -172,8 +177,13 @@ func testWriteToPacketConn(t *testing.T, raddr string) {
t.Fatalf("WriteMsgUDP should fail as errMissingAddress: %v", err)
}
_, _, err = c.(*UDPConn).WriteMsgUDP([]byte("Connection-less mode socket"), nil, ra)
if err != nil {
t.Fatal(err)
switch runtime.GOOS {
case "nacl", "windows": // see golang.org/issue/9252
t.Skipf("not implemented yet on %s", runtime.GOOS)
default:
if err != nil {
t.Fatal(err)
}
}
}