]> Cypherpunks repositories - gostls13.git/commitdiff
syscall: fix TestCloneNEWUSERAndRemapRootEnableSetgroups on linux
authorHiroshi Ioka <hirochachacha@gmail.com>
Tue, 17 Jan 2017 07:16:42 +0000 (16:16 +0900)
committerDavid Crawshaw <crawshaw@golang.org>
Sun, 10 Sep 2017 14:00:44 +0000 (14:00 +0000)
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 <crawshaw@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Crawshaw <crawshaw@golang.org>
src/syscall/exec_linux_test.go

index 79a7916dde7e8b78d54e21139f215480e058ef2a..17df8f445ee822b5351cb1d3f739754c850fd2ad 100644 (file)
@@ -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) {