]> Cypherpunks repositories - gostls13.git/commitdiff
syscall: extend skip criteria for TestAmbientCapsUserns
authorTobias Klauser <tklauser@distanz.ch>
Thu, 19 Sep 2019 15:16:59 +0000 (17:16 +0200)
committerTobias Klauser <tobias.klauser@gmail.com>
Thu, 19 Sep 2019 15:36:49 +0000 (15:36 +0000)
TestAmbientCapsUserns also needs to be skipped, e.g. in case the test is
run inside a chroot.

Updates #34015

Change-Id: I53913432fe9408217edfe64619adbfd911a51a7a
Reviewed-on: https://go-review.googlesource.com/c/go/+/196500
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/syscall/exec_linux_test.go

index ee864ac0d4b9896ee7451fb4e247bec7b00aadfd..f7fab7b659691a6088643888ba5ac24c57063102 100644 (file)
@@ -577,7 +577,7 @@ func TestAmbientCaps(t *testing.T) {
 }
 
 func TestAmbientCapsUserns(t *testing.T) {
-       skipNoUserNamespaces(t)
+       checkUserNS(t)
        testAmbientCaps(t, true)
 }