]> Cypherpunks repositories - gostls13.git/commit
os/exec: skip remount in TestFindExecutableVsNoexec on EROFS
authorTobias Klauser <tklauser@distanz.ch>
Tue, 4 Apr 2023 12:57:14 +0000 (14:57 +0200)
committerTobias Klauser <tobias.klauser@gmail.com>
Tue, 4 Apr 2023 21:20:20 +0000 (21:20 +0000)
commit2f2b874b0aab741a8628fd971f4b3aa41e2fdffb
tree2d91604f3e045b385beaeecabbaa457c185ba4e3
parent6991f63d9e97b2a76f29170450f40b5ac6bb87f3
os/exec: skip remount in TestFindExecutableVsNoexec on EROFS

To allow using testenv.SyscallIsNotSupported, rewrite the test to use
the exported API only. Given that path is an absolute path,
exec.LookPath is equivalent to exec.findExecutable on linux.

Fixes #59087

Change-Id: Ia01b84d4e9d5a65a88dd995f9e3c8a81c4ccd19f
Reviewed-on: https://go-review.googlesource.com/c/go/+/481620
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Bypass: Bryan Mills <bcmills@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/os/exec/lp_linux_test.go