Commit c624f8ff authored by Ben Shi's avatar Ben Shi Committed by Tobias Klauser

syscall: skip TestSyscallNoError on rooted android/arm

The system call geteuid can not work properly on android, which
causes a test case failed on rooted android/arm.

This CL disables the test case on android.

Fixes #27364

Change-Id: Ibfd33ef8cc1dfe8822c8be4280eae12ee30929c1
Reviewed-on: https://go-review.googlesource.com/132175
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: default avatarTobias Klauser <tobias.klauser@gmail.com>
parent bfaffb4e
...@@ -302,6 +302,10 @@ func TestSyscallNoError(t *testing.T) { ...@@ -302,6 +302,10 @@ func TestSyscallNoError(t *testing.T) {
t.Skip("skipping root only test") t.Skip("skipping root only test")
} }
if runtime.GOOS == "android" {
t.Skip("skipping on rooted android, see issue 27364")
}
// Copy the test binary to a location that a non-root user can read/execute // Copy the test binary to a location that a non-root user can read/execute
// after we drop privileges // after we drop privileges
tempDir, err := ioutil.TempDir("", "TestSyscallNoError") tempDir, err := ioutil.TempDir("", "TestSyscallNoError")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment