mirror of
https://github.com/golang/go
synced 2024-11-24 10:30:10 -07:00
net: skip TestLookupPort on android with netgo
/etc/services is not available on Android. The pure Go implementation of LookupPort will never succeed on Android. Skipping the test. Updates #14576. Change-Id: I707ac24aea3f988656b95b1816ee5c9690106985 Reviewed-on: https://go-review.googlesource.com/20154 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
0f9cc465fa
commit
fcb23249b2
@ -624,6 +624,10 @@ func TestLookupPort(t *testing.T) {
|
||||
switch runtime.GOOS {
|
||||
case "nacl":
|
||||
t.Skipf("not supported on %s", runtime.GOOS)
|
||||
case "android":
|
||||
if netGo {
|
||||
t.Skipf("not supported on %s without cgo; see golang.org/issues/14576", runtime.GOOS)
|
||||
}
|
||||
}
|
||||
|
||||
for _, tt := range lookupPortTests {
|
||||
|
Loading…
Reference in New Issue
Block a user