Skip to content

Commit c624f8f

Browse files
benshi001tklauser
authored andcommitted
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 <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Tobias Klauser <[email protected]>
1 parent bfaffb4 commit c624f8f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/syscall/syscall_linux_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,10 @@ func TestSyscallNoError(t *testing.T) {
302302
t.Skip("skipping root only test")
303303
}
304304

305+
if runtime.GOOS == "android" {
306+
t.Skip("skipping on rooted android, see issue 27364")
307+
}
308+
305309
// Copy the test binary to a location that a non-root user can read/execute
306310
// after we drop privileges
307311
tempDir, err := ioutil.TempDir("", "TestSyscallNoError")

0 commit comments

Comments
 (0)