aboutsummaryrefslogtreecommitdiff
path: root/src/internal/syscall/windows/exec_windows_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/internal/syscall/windows/exec_windows_test.go')
-rw-r--r--src/internal/syscall/windows/exec_windows_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/internal/syscall/windows/exec_windows_test.go b/src/internal/syscall/windows/exec_windows_test.go
index 72550b5a84..fc694199f7 100644
--- a/src/internal/syscall/windows/exec_windows_test.go
+++ b/src/internal/syscall/windows/exec_windows_test.go
@@ -9,6 +9,7 @@ package windows_test
import (
"fmt"
"internal/syscall/windows"
+ "internal/testenv"
"os"
"os/exec"
"syscall"
@@ -29,7 +30,7 @@ func TestRunAtLowIntegrity(t *testing.T) {
return
}
- cmd := exec.Command(os.Args[0], "-test.run=^TestRunAtLowIntegrity$", "--")
+ cmd := exec.Command(testenv.Executable(t), "-test.run=^TestRunAtLowIntegrity$", "--")
cmd.Env = []string{"GO_WANT_HELPER_PROCESS=1"}
token, err := getIntegrityLevelToken(sidWilLow)