go/src/os/exec
Kir Kolyshkin e828fbdffe 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>
2022-09-07 18:41:21 +00:00
..
internal/fdtest all: use new "unix" build tag where appropriate 2022-03-29 16:24:51 +00:00
bench_test.go
dot_test.go os/exec: add GODEBUG setting to opt out of ErrDot changes 2022-07-28 19:12:40 +00:00
env_test.go os/exec: preserve original order of entries in dedupEnv 2022-04-21 14:26:18 +00:00
example_test.go os: use strings.Builder 2022-09-07 06:18:48 +00:00
exec.go os/exec: add GODEBUG setting to opt out of ErrDot changes 2022-07-28 19:12:40 +00:00
exec_linux_test.go os/exec: use a TestMain to avoid hijacking stdout for helper commands 2022-04-26 14:49:07 +00:00
exec_plan9.go os/exec: make skipStdinCopyError a function instead of a variable 2022-04-26 13:47:05 +00:00
exec_posix_test.go os/exec: use a TestMain to avoid hijacking stdout for helper commands 2022-04-26 14:49:07 +00:00
exec_test.go os: use strings.Builder 2022-09-07 06:18:48 +00:00
exec_unix.go os/exec: make skipStdinCopyError a function instead of a variable 2022-04-26 13:47:05 +00:00
exec_windows.go os/exec: make skipStdinCopyError a function instead of a variable 2022-04-26 13:47:05 +00:00
exec_windows_test.go os/exec: use a TestMain to avoid hijacking stdout for helper commands 2022-04-26 14:49:07 +00:00
internal_test.go
lp_js.go
lp_linux_test.go os/exec: skip TestFindExecutableVsNoexec if mount failed 2022-09-07 18:41:21 +00:00
lp_plan9.go os/exec: add GODEBUG setting to opt out of ErrDot changes 2022-07-28 19:12:40 +00:00
lp_test.go
lp_unix.go os/exec: LookPath: use eaccess for exec check on linux 2022-09-07 01:09:45 +00:00
lp_unix_test.go all: use new "unix" build tag where appropriate 2022-03-29 16:24:51 +00:00
lp_windows.go os/exec: add GODEBUG setting to opt out of ErrDot changes 2022-07-28 19:12:40 +00:00
lp_windows_test.go os/exec: return error when PATH lookup would use current directory 2022-05-02 14:54:05 +00:00
read3.go os/exec: use a TestMain to avoid hijacking stdout for helper commands 2022-04-26 14:49:07 +00:00