mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
net: separate NaCl dependent placeholders from BSD's
To clarify the dependency of NaCl platform. LGTM=adg R=golang-codereviews, adg CC=golang-codereviews https://golang.org/cl/143830044
This commit is contained in:
parent
8c2484ec11
commit
484cc67151
23 changed files with 186 additions and 25 deletions
|
|
@ -465,6 +465,11 @@ func TestDialer(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestDialDualStackLocalhost(t *testing.T) {
|
||||
switch runtime.GOOS {
|
||||
case "nacl":
|
||||
t.Skipf("skipping test on %q", runtime.GOOS)
|
||||
}
|
||||
|
||||
if ips, err := LookupIP("localhost"); err != nil {
|
||||
t.Fatalf("LookupIP failed: %v", err)
|
||||
} else if len(ips) < 2 || !supportsIPv4 || !supportsIPv6 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue