From fcb23249b2ac65a882fdbbeeb907fdbb5dffdb79 Mon Sep 17 00:00:00 2001 From: Burcu Dogan Date: Wed, 2 Mar 2016 18:12:30 -0800 Subject: [PATCH] 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 --- src/net/lookup_test.go | 4 ++++ 1 file changed, 4 insertions(+) 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 {