aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2019-09-19 17:16:59 +0200
committerTobias Klauser <tobias.klauser@gmail.com>2019-09-19 15:36:49 +0000
commit5d548f1243df8d586a03df085b40299f1e427fb1 (patch)
tree7ca9de1505410b361cefdd89eb933d9b5dd79d79
parent62fb079e2b374d0e64f5432191f53cecd5282f6b (diff)
downloadgo-5d548f1243df8d586a03df085b40299f1e427fb1.tar.gz
go-5d548f1243df8d586a03df085b40299f1e427fb1.zip
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 <tobias.klauser@gmail.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-rw-r--r--src/syscall/exec_linux_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/syscall/exec_linux_test.go b/src/syscall/exec_linux_test.go
index ee864ac0d4..f7fab7b659 100644
--- a/src/syscall/exec_linux_test.go
+++ b/src/syscall/exec_linux_test.go
@@ -577,7 +577,7 @@ func TestAmbientCaps(t *testing.T) {
}
func TestAmbientCapsUserns(t *testing.T) {
- skipNoUserNamespaces(t)
+ checkUserNS(t)
testAmbientCaps(t, true)
}