aboutsummaryrefslogtreecommitdiff
path: root/src/os/exec/exec_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/os/exec/exec_test.go')
-rw-r--r--src/os/exec/exec_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/exec/exec_test.go b/src/os/exec/exec_test.go
index 67e2d256b4..c2f643a645 100644
--- a/src/os/exec/exec_test.go
+++ b/src/os/exec/exec_test.go
@@ -752,7 +752,7 @@ func TestExtraFiles(t *testing.T) {
tempdir := t.TempDir()
exe := filepath.Join(tempdir, "read3.exe")
- c := exec.Command(testenv.GoToolPath(t), "build", "-o", exe, "read3.go")
+ c := testenv.Command(t, testenv.GoToolPath(t), "build", "-o", exe, "read3.go")
// Build the test without cgo, so that C library functions don't
// open descriptors unexpectedly. See issue 25628.
c.Env = append(os.Environ(), "CGO_ENABLED=0")