]> Cypherpunks repositories - gostls13.git/commit
os/exec: skip TestFindExecutableVsNoexec if mount failed
authorKir Kolyshkin <kolyshkin@gmail.com>
Wed, 7 Sep 2022 17:30:46 +0000 (10:30 -0700)
committerGopher Robot <gobot@golang.org>
Wed, 7 Sep 2022 18:41:21 +0000 (18:41 +0000)
commite828fbdffe3318b976aa12d2aee27d4a53bc9f12
tree46fe436c7d4fd134bacdc29ccfb3b380c6a3dd8e
parentdfdf55158dcfc3ef1bd436b3b9ed6daa20801fdb
os/exec: skip TestFindExecutableVsNoexec if mount failed

Apparently, some testing environments do not allow root to mount tmpfs
(due to e.g. AppArmor profile disallowing mount(2) syscall).

Always skip the test if the mount has failed.

Fixes the test issue introduced by CL 414824.

Change-Id: Ic565d2e6f277f2926d85a351be7df2498ffba656
Reviewed-on: https://go-review.googlesource.com/c/go/+/429175
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Bryan Mills <bcmills@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/os/exec/lp_linux_test.go