mirror of https://github.com/golang/go.git
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: Tobias Klauser <tobias.klauser@gmail.com>
This commit is contained in:
parent
bfaffb4e23
commit
c624f8ff70
|
|
@ -302,6 +302,10 @@ func TestSyscallNoError(t *testing.T) {
|
|||
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
|
||||
// after we drop privileges
|
||||
tempDir, err := ioutil.TempDir("", "TestSyscallNoError")
|
||||
|
|
|
|||
Loading…
Reference in New Issue