aboutsummaryrefslogtreecommitdiff
path: root/src/internal/cpu
diff options
context:
space:
mode:
Diffstat (limited to 'src/internal/cpu')
-rw-r--r--src/internal/cpu/cpu_test.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/internal/cpu/cpu_test.go b/src/internal/cpu/cpu_test.go
index a6fe7f77f3..3bff9bed4e 100644
--- a/src/internal/cpu/cpu_test.go
+++ b/src/internal/cpu/cpu_test.go
@@ -8,7 +8,6 @@ import (
. "internal/cpu"
"internal/godebug"
"internal/testenv"
- "os"
"os/exec"
"testing"
)
@@ -26,11 +25,9 @@ func MustSupportFeatureDetection(t *testing.T) {
func runDebugOptionsTest(t *testing.T, test string, options string) {
MustHaveDebugOptionsSupport(t)
- testenv.MustHaveExec(t)
-
env := "GODEBUG=" + options
- cmd := exec.Command(os.Args[0], "-test.run=^"+test+"$")
+ cmd := exec.Command(testenv.Executable(t), "-test.run=^"+test+"$")
cmd.Env = append(cmd.Env, env)
output, err := cmd.CombinedOutput()