diff options
| author | Elias Naur <mail@eliasnaur.com> | 2019-04-07 19:53:30 +0200 |
|---|---|---|
| committer | Elias Naur <mail@eliasnaur.com> | 2019-04-07 18:34:41 +0000 |
| commit | 7331edcef567bb9fdc848f3b8e18dd0da0987372 (patch) | |
| tree | 686244af2ca711c6f62832b8819206a15e7a5848 /src/os/exec/exec_posix_test.go | |
| parent | 71371d850f4255c4ec2d6900e026dfb3dd660c98 (diff) | |
| download | go-7331edcef567bb9fdc848f3b8e18dd0da0987372.tar.xz | |
os/exec: skip unsupported test on Android
The underlying system call tested by TestCredentialNoSetGroups
is blocked on Android.
Discovered while running all.bash from an Android device; the syscall
is only blocked in an app context.
Change-Id: I16fd2e64636a0958b0ec86820723c0577b8f8f24
Reviewed-on: https://go-review.googlesource.com/c/go/+/170945
Run-TryBot: Elias Naur <mail@eliasnaur.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/os/exec/exec_posix_test.go')
| -rw-r--r-- | src/os/exec/exec_posix_test.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/os/exec/exec_posix_test.go b/src/os/exec/exec_posix_test.go index 46799cdbdb..d4d67ac933 100644 --- a/src/os/exec/exec_posix_test.go +++ b/src/os/exec/exec_posix_test.go @@ -8,6 +8,7 @@ package exec_test import ( "os/user" + "runtime" "strconv" "syscall" "testing" @@ -15,6 +16,10 @@ import ( ) func TestCredentialNoSetGroups(t *testing.T) { + if runtime.GOOS == "android" { + t.Skip("unsupported on Android") + } + u, err := user.Current() if err != nil { t.Fatalf("error getting current user: %v", err) |
