aboutsummaryrefslogtreecommitdiff
path: root/src/syscall/syscall_linux_test.go
diff options
context:
space:
mode:
authorBen Shi <powerman1st@163.com>2018-08-30 10:08:34 +0000
committerTobias Klauser <tobias.klauser@gmail.com>2018-08-30 11:14:39 +0000
commitc624f8ff704cd682c0a66a8213c326510800bd8a (patch)
treec64d75f12eb227d070627ff86fb43132445d8ef9 /src/syscall/syscall_linux_test.go
parentbfaffb4e23b956caf6b546c49bd1f28c358d9e2d (diff)
downloadgo-c624f8ff704cd682c0a66a8213c326510800bd8a.tar.xz
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>
Diffstat (limited to 'src/syscall/syscall_linux_test.go')
-rw-r--r--src/syscall/syscall_linux_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/syscall/syscall_linux_test.go b/src/syscall/syscall_linux_test.go
index 99de6ebaf2..1fd70b07e3 100644
--- a/src/syscall/syscall_linux_test.go
+++ b/src/syscall/syscall_linux_test.go
@@ -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")