From: Ian Lance Taylor Date: Tue, 23 Oct 2012 18:01:06 +0000 (+0000) Subject: runtime: Disable crash tests that runs go tool. X-Git-Tag: upstream/12.2.0~73403 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8d672b2640e869e85781f02cd36c1a7cc6165ce8;p=platform%2Fupstream%2Fgcc.git runtime: Disable crash tests that runs go tool. From-SVN: r192735 --- diff --git a/libgo/go/runtime/crash_test.go b/libgo/go/runtime/crash_test.go index 465b2d7..1522ec2 100644 --- a/libgo/go/runtime/crash_test.go +++ b/libgo/go/runtime/crash_test.go @@ -7,7 +7,7 @@ package runtime_test import ( "io/ioutil" "os" - "os/exec" + // "os/exec" "path/filepath" "runtime" "testing" @@ -50,14 +50,19 @@ func testCrashHandler(t *testing.T, ct *crashTest) { } f.Close() - got, err := exec.Command("go", "run", src).CombinedOutput() - if err != nil { - t.Fatalf("program exited with error: %v\n%v", err, string(got)) - } - want := "main: recovered done\nnew-thread: recovered done\nsecond-new-thread: recovered done\nmain-again: recovered done\n" - if string(got) != string(want) { - t.Fatalf("expected %q, but got %q", string(want), string(got)) - } + /* + gccgo does not have a go command. + + got, err := exec.Command("go", "run", src).CombinedOutput() + if err != nil { + t.Fatalf("program exited with error: %v\n%v", err, string(got)) + } + want := "main: recovered done\nnew-thread: recovered done\nsecond-new-thread: recovered done\nmain-again: recovered done\n" + if string(got) != string(want) { + t.Fatalf("expected %q, but got %q", string(want), string(got)) + } + + */ } func TestCrashHandler(t *testing.T) {