]> Cypherpunks repositories - gostls13.git/commitdiff
net: fix windows build
authorMikio Hara <mikioh.mikioh@gmail.com>
Tue, 6 Mar 2012 01:07:08 +0000 (10:07 +0900)
committerMikio Hara <mikioh.mikioh@gmail.com>
Tue, 6 Mar 2012 01:07:08 +0000 (10:07 +0900)
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5755045

src/pkg/net/file_test.go

index 44e5686175c50ab594f71fbb6e81290a2952901f..95c0b66995e4a17a8bca7a74eeda129e6b6255d9 100644 (file)
@@ -7,6 +7,7 @@ package net
 import (
        "os"
        "reflect"
+       "runtime"
        "testing"
 )
 
@@ -87,6 +88,12 @@ var fileListenerTests = []struct {
 }
 
 func TestFileListener(t *testing.T) {
+       switch runtime.GOOS {
+       case "plan9", "windows":
+               t.Logf("skipping test on %q", runtime.GOOS)
+               return
+       }
+
        for _, tt := range fileListenerTests {
                if skipServerTest(tt.net, "unix", tt.laddr, tt.ipv6, false, tt.linux) {
                        continue
@@ -172,6 +179,12 @@ var filePacketConnTests = []struct {
 }
 
 func TestFilePacketConn(t *testing.T) {
+       switch runtime.GOOS {
+       case "plan9", "windows":
+               t.Logf("skipping test on %q", runtime.GOOS)
+               return
+       }
+
        for _, tt := range filePacketConnTests {
                if skipServerTest(tt.net, "unixgram", tt.addr, tt.ipv6, false, tt.linux) {
                        continue