]> Cypherpunks repositories - gostls13.git/commitdiff
net: pass tests on Plan 9
authorAkshat Kumar <seed@mail.nanosouffle.net>
Thu, 28 Feb 2013 06:18:02 +0000 (07:18 +0100)
committerRon Minnich <rminnich@gmail.com>
Thu, 28 Feb 2013 06:18:02 +0000 (07:18 +0100)
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

src/pkg/net/file_test.go
src/pkg/net/net_test.go
src/pkg/net/protoconn_test.go
src/pkg/net/timeout_test.go

index 78c62221dae12d38fca00f1239cf4c1fe71ad09a..acaf18851021efd7ad7c32c9d3960c44cdef0eb8 100644 (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)
        }
 
index 8a560b521943a5ea7dab540ff8864520c4b73453..1a512a5b1100ecb3eed05649418a341796b64bd8 100644 (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)
index 0c3b3abeb6413e32ac4af0548caea6346687bc5e..fd7e4be14b962a92ea43fe03ad1152c6bbdc71a6 100644 (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)
index 7cf45ca0a09269e09afdfd9dc67916a8e75395ba..0260efcc0b622df96e02a524e5468d0417ee3f20 100644 (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()