diff options
Diffstat (limited to 'src/cmd/compile/internal/test/lang_test.go')
-rw-r--r-- | src/cmd/compile/internal/test/lang_test.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cmd/compile/internal/test/lang_test.go b/src/cmd/compile/internal/test/lang_test.go index 5cb4695b68..0b957dc3d8 100644 --- a/src/cmd/compile/internal/test/lang_test.go +++ b/src/cmd/compile/internal/test/lang_test.go @@ -7,7 +7,6 @@ package test import ( "internal/testenv" "os" - "os/exec" "path/filepath" "testing" ) @@ -57,7 +56,7 @@ func TestInvalidLang(t *testing.T) { func testLang(t *testing.T, lang, src, outfile string) error { run := []string{testenv.GoToolPath(t), "tool", "compile", "-p=p", "-lang", lang, "-o", outfile, src} t.Log(run) - out, err := exec.Command(run[0], run[1:]...).CombinedOutput() + out, err := testenv.Command(t, run[0], run[1:]...).CombinedOutput() t.Logf("%s", out) return err } |