Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
195ccd5d
Commit
195ccd5d
authored
Mar 06, 2012
by
Mikio Hara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
net: fix windows build
R=golang-dev, bradfitz CC=golang-dev
https://golang.org/cl/5755045
parent
d4e13832
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
file_test.go
src/pkg/net/file_test.go
+13
-0
No files found.
src/pkg/net/file_test.go
View file @
195ccd5d
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment