From: Burcu Dogan Date: Thu, 3 Mar 2016 02:12:30 +0000 (-0800) Subject: net: skip TestLookupPort on android with netgo X-Git-Tag: go1.7beta1~1589 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=fcb23249b2ac65a882fdbbeeb907fdbb5dffdb79;p=gostls13.git 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 --- diff --git a/src/net/lookup_test.go b/src/net/lookup_test.go index 439496ac81..6307a8612d 100644 --- a/src/net/lookup_test.go +++ b/src/net/lookup_test.go @@ -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 {