diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2019-09-19 17:16:59 +0200 |
---|---|---|
committer | Tobias Klauser <tobias.klauser@gmail.com> | 2019-09-19 15:36:49 +0000 |
commit | 5d548f1243df8d586a03df085b40299f1e427fb1 (patch) | |
tree | 7ca9de1505410b361cefdd89eb933d9b5dd79d79 | |
parent | 62fb079e2b374d0e64f5432191f53cecd5282f6b (diff) | |
download | go-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.go | 2 |
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) } |