Skip to content

Commit 5d548f1

Browse files
committed
syscall: extend skip criteria for TestAmbientCapsUserns
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 <[email protected]> Reviewed-by: Brad Fitzpatrick <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
1 parent 62fb079 commit 5d548f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/syscall/exec_linux_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ func TestAmbientCaps(t *testing.T) {
577577
}
578578

579579
func TestAmbientCapsUserns(t *testing.T) {
580-
skipNoUserNamespaces(t)
580+
checkUserNS(t)
581581
testAmbientCaps(t, true)
582582
}
583583

0 commit comments

Comments
 (0)