From: Hiroshi Ioka Date: Tue, 17 Jan 2017 07:16:42 +0000 (+0900) Subject: syscall: fix TestCloneNEWUSERAndRemapRootEnableSetgroups on linux X-Git-Tag: go1.10beta1~1157 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=8435a746f5ca03bfd53ddf099bb2e82e6854acbf;p=gostls13.git syscall: fix TestCloneNEWUSERAndRemapRootEnableSetgroups on linux Despite its name, it did the same thing as TestCloneNEWUSERAndRemapRootDisableSetgroups in old code. So fix it. Change-Id: I21265e539179c51980e16f07a553a9bf5bb7903f Reviewed-on: https://go-review.googlesource.com/35273 Run-TryBot: David Crawshaw TryBot-Result: Gobot Gobot Reviewed-by: David Crawshaw --- diff --git a/src/syscall/exec_linux_test.go b/src/syscall/exec_linux_test.go index 79a7916dde..17df8f445e 100644 --- a/src/syscall/exec_linux_test.go +++ b/src/syscall/exec_linux_test.go @@ -133,7 +133,7 @@ func TestCloneNEWUSERAndRemapRootEnableSetgroups(t *testing.T) { if os.Getuid() != 0 { t.Skip("skipping root only test") } - testNEWUSERRemap(t, 0, 0, false) + testNEWUSERRemap(t, 0, 0, true) } func TestCloneNEWUSERAndRemapNoRootDisableSetgroups(t *testing.T) {