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>
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)
}
}