]> Cypherpunks repositories - gostls13.git/commitdiff
net: disable unixgram test on Plan 9 and Windows
authorMikio Hara <mikioh.mikioh@gmail.com>
Sun, 3 Mar 2013 11:06:51 +0000 (20:06 +0900)
committerMikio Hara <mikioh.mikioh@gmail.com>
Sun, 3 Mar 2013 11:06:51 +0000 (20:06 +0900)
Fixes build on Plan 9 and Windows.

R=golang-dev, minux.ma
CC=golang-dev
https://golang.org/cl/7454049

src/pkg/net/packetconn_test.go

index b0f3f85cc3689d7dabfd797ee4ee5a05daf78d88..93c7a6472e66ad4624f4cbc206d24fb5c6300138 100644 (file)
@@ -143,6 +143,10 @@ func TestConnAndPacketConn(t *testing.T) {
                                t.Fatalf("icmpMessage.Marshal failed: %v", err)
                        }
                case "unixgram":
+                       switch runtime.GOOS {
+                       case "plan9", "windows":
+                               continue
+                       }
                        wb = []byte("UNIXGRAM PACKETCONN TEST")
                default:
                        continue