mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
net: fix windows build (?)
TBR=adg CC=golang-dev https://golang.org/cl/4083042
This commit is contained in:
parent
b15c851db2
commit
b7bf2a3a0b
2 changed files with 8 additions and 0 deletions
|
|
@ -7,6 +7,7 @@ package net
|
||||||
import (
|
import (
|
||||||
"flag"
|
"flag"
|
||||||
"regexp"
|
"regexp"
|
||||||
|
"runtime"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
@ -103,6 +104,9 @@ var revAddrTests = []struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestReverseAddress(t *testing.T) {
|
func TestReverseAddress(t *testing.T) {
|
||||||
|
if runtime.GOOS == "windows" {
|
||||||
|
return
|
||||||
|
}
|
||||||
for i, tt := range revAddrTests {
|
for i, tt := range revAddrTests {
|
||||||
a, e := reverseaddr(tt.Addr)
|
a, e := reverseaddr(tt.Addr)
|
||||||
if len(tt.ErrPrefix) > 0 && e == nil {
|
if len(tt.ErrPrefix) > 0 && e == nil {
|
||||||
|
|
|
||||||
|
|
@ -81,3 +81,7 @@ func LookupPort(network, service string) (port int, err os.Error) {
|
||||||
func isDomainName(s string) bool {
|
func isDomainName(s string) bool {
|
||||||
panic("unimplemented")
|
panic("unimplemented")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func resolveaddr(addr string) (arpa string, err os.Error) {
|
||||||
|
panic("unimplemented")
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue