diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-10-23 18:01:06 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-10-23 18:01:06 +0000 |
commit | a0fa67cf2e3a99aef9ae7c9ad75f9b4aedc19b34 (patch) | |
tree | e58fcbad59edbd7b043c2f791f952b3ce64880f5 /libgo | |
parent | c71b77ea2d39da660666ae2f9540349981b70f26 (diff) | |
download | gcc-a0fa67cf2e3a99aef9ae7c9ad75f9b4aedc19b34.tar.gz |
runtime: Disable crash tests that runs go tool.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192735 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo')
-rw-r--r-- | libgo/go/runtime/crash_test.go | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/libgo/go/runtime/crash_test.go b/libgo/go/runtime/crash_test.go index 465b2d70964..1522ec2b80b 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) { |