Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
9442c442
Commit
9442c442
authored
Mar 06, 2012
by
Mikio Hara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
net: add skip message to test
R=golang-dev, bradfitz CC=golang-dev
https://golang.org/cl/5753048
parent
932c8ddb
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
27 additions
and
5 deletions
+27
-5
src/pkg/net/multicast_test.go
src/pkg/net/multicast_test.go
+3
-0
src/pkg/net/net_test.go
src/pkg/net/net_test.go
+1
-0
src/pkg/net/parse_test.go
src/pkg/net/parse_test.go
+3
-1
src/pkg/net/server_test.go
src/pkg/net/server_test.go
+1
-0
src/pkg/net/timeout_test.go
src/pkg/net/timeout_test.go
+9
-3
src/pkg/net/udp_test.go
src/pkg/net/udp_test.go
+3
-1
src/pkg/net/unicast_test.go
src/pkg/net/unicast_test.go
+7
-0
No files found.
src/pkg/net/multicast_test.go
View file @
9442c442
...
...
@@ -47,9 +47,11 @@ var multicastListenerTests = []struct {
func
TestMulticastListener
(
t
*
testing
.
T
)
{
switch
runtime
.
GOOS
{
case
"netbsd"
,
"openbsd"
,
"plan9"
,
"windows"
:
t
.
Logf
(
"skipping test on %q"
,
runtime
.
GOOS
)
return
case
"linux"
:
if
runtime
.
GOARCH
==
"arm"
||
runtime
.
GOARCH
==
"alpha"
{
t
.
Logf
(
"skipping test on %q/%q"
,
runtime
.
GOOS
,
runtime
.
GOARCH
)
return
}
}
...
...
@@ -86,6 +88,7 @@ func TestMulticastListener(t *testing.T) {
func
TestSimpleMulticastListener
(
t
*
testing
.
T
)
{
switch
runtime
.
GOOS
{
case
"plan9"
:
t
.
Logf
(
"skipping test on %q"
,
runtime
.
GOOS
)
return
}
...
...
src/pkg/net/net_test.go
View file @
9442c442
...
...
@@ -21,6 +21,7 @@ var avoidOSXFirewallDialogPopup = func() bool {
func
TestShutdown
(
t
*
testing
.
T
)
{
if
runtime
.
GOOS
==
"plan9"
{
t
.
Logf
(
"skipping test on %q"
,
runtime
.
GOOS
)
return
}
l
,
err
:=
Listen
(
"tcp"
,
"127.0.0.1:0"
)
...
...
src/pkg/net/parse_test.go
View file @
9442c442
...
...
@@ -13,7 +13,9 @@ import (
func
TestReadLine
(
t
*
testing
.
T
)
{
// /etc/services file does not exist on windows and Plan 9.
if
runtime
.
GOOS
==
"windows"
||
runtime
.
GOOS
==
"plan9"
{
switch
runtime
.
GOOS
{
case
"plan9"
,
"windows"
:
t
.
Logf
(
"skipping test on %q"
,
runtime
.
GOOS
)
return
}
filename
:=
"/etc/services"
// a nice big file
...
...
src/pkg/net/server_test.go
View file @
9442c442
...
...
@@ -142,6 +142,7 @@ var seqpacketConnServerTests = []struct {
func
TestSeqpacketConnServer
(
t
*
testing
.
T
)
{
if
runtime
.
GOOS
!=
"linux"
{
t
.
Logf
(
"skipping test on %q"
,
runtime
.
GOOS
)
return
}
...
...
src/pkg/net/timeout_test.go
View file @
9442c442
...
...
@@ -57,7 +57,9 @@ func testTimeout(t *testing.T, net, addr string, readFrom bool) {
}
func
TestTimeoutUDP
(
t
*
testing
.
T
)
{
if
runtime
.
GOOS
==
"plan9"
{
switch
runtime
.
GOOS
{
case
"plan9"
:
t
.
Logf
(
"skipping test on %q"
,
runtime
.
GOOS
)
return
}
...
...
@@ -73,7 +75,9 @@ func TestTimeoutUDP(t *testing.T) {
}
func
TestTimeoutTCP
(
t
*
testing
.
T
)
{
if
runtime
.
GOOS
==
"plan9"
{
switch
runtime
.
GOOS
{
case
"plan9"
:
t
.
Logf
(
"skipping test on %q"
,
runtime
.
GOOS
)
return
}
...
...
@@ -88,7 +92,9 @@ func TestTimeoutTCP(t *testing.T) {
}
func
TestDeadlineReset
(
t
*
testing
.
T
)
{
if
runtime
.
GOOS
==
"plan9"
{
switch
runtime
.
GOOS
{
case
"plan9"
:
t
.
Logf
(
"skipping test on %q"
,
runtime
.
GOOS
)
return
}
ln
,
err
:=
Listen
(
"tcp"
,
"127.0.0.1:0"
)
...
...
src/pkg/net/udp_test.go
View file @
9442c442
...
...
@@ -10,7 +10,9 @@ import (
)
func
TestWriteToUDP
(
t
*
testing
.
T
)
{
if
runtime
.
GOOS
==
"plan9"
{
switch
runtime
.
GOOS
{
case
"plan9"
:
t
.
Logf
(
"skipping test on %q"
,
runtime
.
GOOS
)
return
}
...
...
src/pkg/net/unicast_test.go
View file @
9442c442
...
...
@@ -45,6 +45,7 @@ var listenerTests = []struct {
func
TestTCPListener
(
t
*
testing
.
T
)
{
switch
runtime
.
GOOS
{
case
"plan9"
,
"windows"
:
t
.
Logf
(
"skipping test on %q"
,
runtime
.
GOOS
)
return
}
...
...
@@ -80,6 +81,7 @@ func TestTCPListener(t *testing.T) {
func
TestUDPListener
(
t
*
testing
.
T
)
{
switch
runtime
.
GOOS
{
case
"plan9"
,
"windows"
:
t
.
Logf
(
"skipping test on %q"
,
runtime
.
GOOS
)
return
}
...
...
@@ -125,6 +127,7 @@ func TestUDPListener(t *testing.T) {
func
TestSimpleTCPListener
(
t
*
testing
.
T
)
{
switch
runtime
.
GOOS
{
case
"plan9"
:
t
.
Logf
(
"skipping test on %q"
,
runtime
.
GOOS
)
return
}
...
...
@@ -150,6 +153,7 @@ func TestSimpleTCPListener(t *testing.T) {
func
TestSimpleUDPListener
(
t
*
testing
.
T
)
{
switch
runtime
.
GOOS
{
case
"plan9"
:
t
.
Logf
(
"skipping test on %q"
,
runtime
.
GOOS
)
return
}
...
...
@@ -255,6 +259,7 @@ var dualStackListenerTests = []struct {
func
TestDualStackTCPListener
(
t
*
testing
.
T
)
{
switch
runtime
.
GOOS
{
case
"plan9"
:
t
.
Logf
(
"skipping test on %q"
,
runtime
.
GOOS
)
return
}
if
!
supportsIPv6
{
...
...
@@ -291,6 +296,7 @@ func TestDualStackTCPListener(t *testing.T) {
func
TestDualStackUDPListener
(
t
*
testing
.
T
)
{
switch
runtime
.
GOOS
{
case
"plan9"
:
t
.
Logf
(
"skipping test on %q"
,
runtime
.
GOOS
)
return
}
if
!
supportsIPv6
{
...
...
@@ -521,6 +527,7 @@ var prohibitionaryDialArgTests = []struct {
func
TestProhibitionaryDialArgs
(
t
*
testing
.
T
)
{
switch
runtime
.
GOOS
{
case
"plan9"
:
t
.
Logf
(
"skipping test on %q"
,
runtime
.
GOOS
)
return
}
// This test requires both IPv6 and IPv6 IPv4-mapping functionality.
...
...
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