aboutsummaryrefslogtreecommitdiff
path: root/src/os/exec/exec_windows_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/os/exec/exec_windows_test.go')
-rw-r--r--src/os/exec/exec_windows_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/os/exec/exec_windows_test.go b/src/os/exec/exec_windows_test.go
index b39790d61a..efd37107ed 100644
--- a/src/os/exec/exec_windows_test.go
+++ b/src/os/exec/exec_windows_test.go
@@ -8,6 +8,7 @@ package exec_test
import (
"fmt"
+ "internal/testenv"
"io"
"os"
"os/exec"
@@ -69,7 +70,7 @@ func TestPipePassing(t *testing.T) {
func TestNoInheritHandles(t *testing.T) {
t.Parallel()
- cmd := exec.Command("cmd", "/c exit 88")
+ cmd := testenv.Command(t, "cmd", "/c exit 88")
cmd.SysProcAttr = &syscall.SysProcAttr{NoInheritHandles: true}
err := cmd.Run()
exitError, ok := err.(*exec.ExitError)