diff options
| author | Michael Pratt <mpratt@google.com> | 2023-11-21 15:37:49 -0500 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2023-11-21 21:40:03 +0000 |
| commit | 4a2408289c0a714fa57fa5921cf5dba518149637 (patch) | |
| tree | 32593b6e2aedae96640ee1738667954be4879729 /src/syscall/exec_linux_test.go | |
| parent | 41f58b2295c39611fcf13040e499167966321e72 (diff) | |
| download | go-4a2408289c0a714fa57fa5921cf5dba518149637.tar.xz | |
syscall: check SyscallIsNotSupported in TestPidFDWithUserNS
For #51246.
Change-Id: Ief2e2e14f039123a6580cb60be7ee74f4a20a649
Reviewed-on: https://go-review.googlesource.com/c/go/+/544318
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Michael Pratt <mpratt@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/syscall/exec_linux_test.go')
| -rw-r--r-- | src/syscall/exec_linux_test.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/syscall/exec_linux_test.go b/src/syscall/exec_linux_test.go index a7af00d2c0..976275e1dc 100644 --- a/src/syscall/exec_linux_test.go +++ b/src/syscall/exec_linux_test.go @@ -582,6 +582,9 @@ func TestPidFD(t *testing.T) { func TestPidFDWithUserNS(t *testing.T) { if err := testPidFD(t, true); err != nil { + if testenv.SyscallIsNotSupported(err) { + t.Skip("userns not supported:", err) + } t.Fatal("can't start a process:", err) } } |
