diff options
| author | Josh Stone <jistone@redhat.com> | 2018-04-11 15:41:22 -0700 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2018-04-24 16:16:49 -0700 |
| commit | cc48ae5a64a4e648211a2e7c9f37df0c5d6c32a6 (patch) | |
| tree | c4855f52f29bbe5111e0fd91e1e0ecd496761f1b | |
| parent | f5203d1073a774e01ae0c57ebb561648a8fd9910 (diff) | |
| download | rust-cc48ae5a64a4e648211a2e7c9f37df0c5d6c32a6.tar.gz rust-cc48ae5a64a4e648211a2e7c9f37df0c5d6c32a6.zip | |
compiletest: detect non-ICE compiler panics
| -rw-r--r-- | src/tools/compiletest/src/runtest.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs index aabf2e6f8f0..4a7f902a892 100644 --- a/src/tools/compiletest/src/runtest.rs +++ b/src/tools/compiletest/src/runtest.rs @@ -1166,6 +1166,8 @@ impl<'test> TestCx<'test> { for line in proc_res.stderr.lines() { if line.contains("error: internal compiler error") { self.fatal_proc_rec("compiler encountered internal error", proc_res); + } else if line.contains(" panicked at ") { + self.fatal_proc_rec("compiler panicked", proc_res); } } } |
