Skip to content

Commit

Permalink
syscall: skip an unsupported test case on android
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
benshi001 authored and bradfitz committed Aug 29, 2018
1 parent 618bfb2 commit 225981f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/syscall/exec_linux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (
"os/exec"
"os/user"
"path/filepath"
"runtime"
"strconv"
"strings"
"syscall"
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 225981f

Please sign in to comment.