mirror of
https://github.com/golang/go
synced 2024-11-24 05:20:04 -07:00
net: fix windows build
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5755045
This commit is contained in:
parent
d4e1383285
commit
195ccd5dac
@ -7,6 +7,7 @@ package net
|
|||||||
import (
|
import (
|
||||||
"os"
|
"os"
|
||||||
"reflect"
|
"reflect"
|
||||||
|
"runtime"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -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 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user