summaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/dwarfgen/scope_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/compile/internal/dwarfgen/scope_test.go')
-rw-r--r--src/cmd/compile/internal/dwarfgen/scope_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cmd/compile/internal/dwarfgen/scope_test.go b/src/cmd/compile/internal/dwarfgen/scope_test.go
index 03567227b7..502b66f014 100644
--- a/src/cmd/compile/internal/dwarfgen/scope_test.go
+++ b/src/cmd/compile/internal/dwarfgen/scope_test.go
@@ -9,7 +9,6 @@ import (
"fmt"
"internal/testenv"
"os"
- "os/exec"
"path/filepath"
"runtime"
"sort"
@@ -474,7 +473,7 @@ func gobuild(t *testing.T, dir string, optimized bool, testfile []testline) (str
}
args = append(args, "-o", dst, src)
- cmd := exec.Command(testenv.GoToolPath(t), args...)
+ cmd := testenv.Command(t, testenv.GoToolPath(t), args...)
if b, err := cmd.CombinedOutput(); err != nil {
t.Logf("build: %s\n", string(b))
t.Fatal(err)