Commit 195ccd5d authored by Mikio Hara's avatar Mikio Hara

net: fix windows build

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5755045
parent d4e13832
...@@ -7,6 +7,7 @@ package net ...@@ -7,6 +7,7 @@ package net
import ( import (
"os" "os"
"reflect" "reflect"
"runtime"
"testing" "testing"
) )
...@@ -87,6 +88,12 @@ var fileListenerTests = []struct { ...@@ -87,6 +88,12 @@ var fileListenerTests = []struct {
} }
func TestFileListener(t *testing.T) { func TestFileListener(t *testing.T) {
switch runtime.GOOS {
case "plan9", "windows":
t.Logf("skipping test on %q", runtime.GOOS)
return
}
for _, tt := range fileListenerTests { for _, tt := range fileListenerTests {
if skipServerTest(tt.net, "unix", tt.laddr, tt.ipv6, false, tt.linux) { if skipServerTest(tt.net, "unix", tt.laddr, tt.ipv6, false, tt.linux) {
continue continue
...@@ -172,6 +179,12 @@ var filePacketConnTests = []struct { ...@@ -172,6 +179,12 @@ var filePacketConnTests = []struct {
} }
func TestFilePacketConn(t *testing.T) { func TestFilePacketConn(t *testing.T) {
switch runtime.GOOS {
case "plan9", "windows":
t.Logf("skipping test on %q", runtime.GOOS)
return
}
for _, tt := range filePacketConnTests { for _, tt := range filePacketConnTests {
if skipServerTest(tt.net, "unixgram", tt.addr, tt.ipv6, false, tt.linux) { if skipServerTest(tt.net, "unixgram", tt.addr, tt.ipv6, false, tt.linux) {
continue continue
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment