1
0
mirror of https://github.com/golang/go synced 2024-11-26 15:56:57 -07:00

net: pass tests on Plan 9

Ignore problematic tests and un-ignore one
we can now pass.

R=rsc, rminnich, ality, dave, bradfitz
CC=golang-dev
https://golang.org/cl/7396060
This commit is contained in:
Akshat Kumar 2013-02-28 07:18:02 +01:00 committed by Ron Minnich
parent 322214cf54
commit b2249f2018
4 changed files with 25 additions and 1 deletions

View File

@ -89,7 +89,7 @@ var fileListenerTests = []struct {
func TestFileListener(t *testing.T) {
switch runtime.GOOS {
case "plan9", "windows":
case "windows":
t.Skipf("skipping test on %q", runtime.GOOS)
}

View File

@ -173,6 +173,10 @@ func TestUDPListenClose(t *testing.T) {
}
func TestTCPClose(t *testing.T) {
switch runtime.GOOS {
case "plan9":
t.Skipf("skipping test on %q", runtime.GOOS)
}
l, err := Listen("tcp", "127.0.0.1:0")
if err != nil {
t.Fatal(err)

View File

@ -25,6 +25,11 @@ var condErrorf = func() func(*testing.T, string, ...interface{}) {
}()
func TestTCPListenerSpecificMethods(t *testing.T) {
switch runtime.GOOS {
case "plan9":
t.Skipf("skipping test on %q", runtime.GOOS)
}
la, err := ResolveTCPAddr("tcp4", "127.0.0.1:0")
if err != nil {
t.Fatalf("net.ResolveTCPAddr failed: %v", err)

View File

@ -420,6 +420,11 @@ func TestVariousDeadlines4Proc(t *testing.T) {
}
func testVariousDeadlines(t *testing.T, maxProcs int) {
switch runtime.GOOS {
case "plan9":
t.Skipf("skipping test on %q", runtime.GOOS)
}
defer runtime.GOMAXPROCS(runtime.GOMAXPROCS(maxProcs))
ln := newLocalListener(t)
defer ln.Close()
@ -518,6 +523,11 @@ func testVariousDeadlines(t *testing.T, maxProcs int) {
// TestReadDeadlineDataAvailable tests that read deadlines work, even
// if there's data ready to be read.
func TestReadDeadlineDataAvailable(t *testing.T) {
switch runtime.GOOS {
case "plan9":
t.Skipf("skipping test on %q", runtime.GOOS)
}
ln := newLocalListener(t)
defer ln.Close()
@ -552,6 +562,11 @@ func TestReadDeadlineDataAvailable(t *testing.T) {
// TestWriteDeadlineBufferAvailable tests that write deadlines work, even
// if there's buffer space available to write.
func TestWriteDeadlineBufferAvailable(t *testing.T) {
switch runtime.GOOS {
case "plan9":
t.Skipf("skipping test on %q", runtime.GOOS)
}
ln := newLocalListener(t)
defer ln.Close()