diff options
Diffstat (limited to 'src/syscall/exec_unix_test.go')
| -rw-r--r-- | src/syscall/exec_unix_test.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/syscall/exec_unix_test.go b/src/syscall/exec_unix_test.go index fda9019e39..3a95356c1e 100644 --- a/src/syscall/exec_unix_test.go +++ b/src/syscall/exec_unix_test.go @@ -302,8 +302,7 @@ func TestInvalidExec(t *testing.T) { // TestExec is for issue #41702. func TestExec(t *testing.T) { - testenv.MustHaveExec(t) - cmd := exec.Command(os.Args[0], "-test.run=^TestExecHelper$") + cmd := exec.Command(testenv.Executable(t), "-test.run=^TestExecHelper$") cmd.Env = append(os.Environ(), "GO_WANT_HELPER_PROCESS=2") o, err := cmd.CombinedOutput() if err != nil { |
