summaryrefslogtreecommitdiff
path: root/src/syscall/exec_linux_test.go
diff options
context:
space:
mode:
authorBen Shi <powerman1st@163.com>2018-08-29 03:24:13 +0000
committerBrad Fitzpatrick <bradfitz@golang.org>2018-08-29 03:58:42 +0000
commit225981f8e78b6755bbe34c2e5d035a534ed1b25d (patch)
tree6a3a97521d791098a7951ed5896dae85a5844dea /src/syscall/exec_linux_test.go
parent618bfb28dc02c410659312f38cd3500352ba15ed (diff)
downloadgo-git-225981f8e78b6755bbe34c2e5d035a534ed1b25d.tar.gz
syscall: skip an unsupported test case on android
Lookup is not supported on android, and the test syscall/exec_linux_test.go which relies on it will fail on android/arm64. Fixes #27327 Change-Id: I6fdb8992d4634ac7e3689360ff114e9431b5e90c Reviewed-on: https://go-review.googlesource.com/131995 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/syscall/exec_linux_test.go')
-rw-r--r--src/syscall/exec_linux_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/syscall/exec_linux_test.go b/src/syscall/exec_linux_test.go
index f551e87736..ac5745bc80 100644
--- a/src/syscall/exec_linux_test.go
+++ b/src/syscall/exec_linux_test.go
@@ -16,6 +16,7 @@ import (
"os/exec"
"os/user"
"path/filepath"
+ "runtime"
"strconv"
"strings"
"syscall"
@@ -524,6 +525,11 @@ func TestAmbientCaps(t *testing.T) {
t.Skip("skipping test on Kubernetes-based builders; see Issue 12815")
}
+ // skip on android, due to lack of lookup support
+ if runtime.GOOS == "android" {
+ t.Skip("skipping test on android; see Issue 27327")
+ }
+
caps, err := getCaps()
if err != nil {
t.Fatal(err)