Commit fcb23249 authored by Burcu Dogan's avatar Burcu Dogan

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/20154Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 0f9cc465
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment