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 (
|
||||
"flag"
|
||||
"regexp"
|
||||
"runtime"
|
||||
"testing"
|
||||
)
|
||||
|
||||
|
|
@ -103,6 +104,9 @@ var revAddrTests = []struct {
|
|||
}
|
||||
|
||||
func TestReverseAddress(t *testing.T) {
|
||||
if runtime.GOOS == "windows" {
|
||||
return
|
||||
}
|
||||
for i, tt := range revAddrTests {
|
||||
a, e := reverseaddr(tt.Addr)
|
||||
if len(tt.ErrPrefix) > 0 && e == nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue