diff options
Diffstat (limited to 'src/cmd/compile/internal/ssa/debug_lines_test.go')
-rw-r--r-- | src/cmd/compile/internal/ssa/debug_lines_test.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cmd/compile/internal/ssa/debug_lines_test.go b/src/cmd/compile/internal/ssa/debug_lines_test.go index b5607d7efc..6678a96e77 100644 --- a/src/cmd/compile/internal/ssa/debug_lines_test.go +++ b/src/cmd/compile/internal/ssa/debug_lines_test.go @@ -12,7 +12,6 @@ import ( "internal/buildcfg" "internal/testenv" "os" - "os/exec" "path/filepath" "reflect" "regexp" @@ -142,7 +141,7 @@ func compileAndDump(t *testing.T, file, function, moreGCFlags string) []byte { panic(fmt.Sprintf("Could not get abspath of testdata directory and file, %v", err)) } - cmd := exec.Command(testenv.GoToolPath(t), "build", "-o", "foo.o", "-gcflags=-d=ssa/genssa/dump="+function+" "+moreGCFlags, source) + cmd := testenv.Command(t, testenv.GoToolPath(t), "build", "-o", "foo.o", "-gcflags=-d=ssa/genssa/dump="+function+" "+moreGCFlags, source) cmd.Dir = tmpdir cmd.Env = replaceEnv(cmd.Env, "GOSSADIR", tmpdir) testGoos := "linux" // default to linux |