net: Plan 9 fixes

Makes all tests pass.

R=rsc
CC=golang-dev
https://golang.org/cl/5320041
This commit is contained in:
Fazlul Shahriar 2011-10-31 11:47:44 -04:00 committed by Russ Cox
parent 350a5ce64f
commit 5842336089
5 changed files with 42 additions and 4 deletions

View file

@ -8,6 +8,7 @@ import (
"flag"
"os"
"regexp"
"runtime"
"testing"
)
@ -128,6 +129,9 @@ func TestReverseAddress(t *testing.T) {
}
func TestShutdown(t *testing.T) {
if runtime.GOOS == "plan9" {
return
}
l, err := Listen("tcp", "127.0.0.1:0")
if err != nil {
if l, err = Listen("tcp6", "[::1]:0"); err != nil {