diff options
Diffstat (limited to 'libgo/go/runtime/crash_gccgo_test.go')
-rw-r--r-- | libgo/go/runtime/crash_gccgo_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgo/go/runtime/crash_gccgo_test.go b/libgo/go/runtime/crash_gccgo_test.go index c216e54..d4a826e 100644 --- a/libgo/go/runtime/crash_gccgo_test.go +++ b/libgo/go/runtime/crash_gccgo_test.go @@ -38,8 +38,8 @@ func TestGccgoCrashTracebackNodebug(t *testing.T) { } cc := strings.Fields(os.Getenv("CC")) - cc = append(cc, "-x", "c++", "-") - out, _ := exec.Command(cc[0], cc[1:]...).CombinedOutput() + cc = append(cc, "-o", os.DevNull, "-x", "c++", "-") + out, _ := testenv.CleanCmdEnv(exec.Command(cc[0], cc[1:]...)).CombinedOutput() if bytes.Contains(out, []byte("error trying to exec 'cc1plus'")) { t.Skip("no C++ compiler") } |