mirror of git://gcc.gnu.org/git/gcc.git
runtime: Disable crash tests that runs go tool.
From-SVN: r192735
This commit is contained in:
parent
66f2cabce6
commit
8d672b2640
|
|
@ -7,7 +7,7 @@ package runtime_test
|
||||||
import (
|
import (
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"os"
|
"os"
|
||||||
"os/exec"
|
// "os/exec"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"runtime"
|
"runtime"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
@ -50,14 +50,19 @@ func testCrashHandler(t *testing.T, ct *crashTest) {
|
||||||
}
|
}
|
||||||
f.Close()
|
f.Close()
|
||||||
|
|
||||||
got, err := exec.Command("go", "run", src).CombinedOutput()
|
/*
|
||||||
if err != nil {
|
gccgo does not have a go command.
|
||||||
t.Fatalf("program exited with error: %v\n%v", err, string(got))
|
|
||||||
}
|
got, err := exec.Command("go", "run", src).CombinedOutput()
|
||||||
want := "main: recovered done\nnew-thread: recovered done\nsecond-new-thread: recovered done\nmain-again: recovered done\n"
|
if err != nil {
|
||||||
if string(got) != string(want) {
|
t.Fatalf("program exited with error: %v\n%v", err, string(got))
|
||||||
t.Fatalf("expected %q, but got %q", string(want), 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) {
|
func TestCrashHandler(t *testing.T) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue