Skip to content

Commit cc48ae5

Browse files
committed
compiletest: detect non-ICE compiler panics
1 parent f5203d1 commit cc48ae5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/tools/compiletest/src/runtest.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1166,6 +1166,8 @@ impl<'test> TestCx<'test> {
11661166
for line in proc_res.stderr.lines() {
11671167
if line.contains("error: internal compiler error") {
11681168
self.fatal_proc_rec("compiler encountered internal error", proc_res);
1169+
} else if line.contains(" panicked at ") {
1170+
self.fatal_proc_rec("compiler panicked", proc_res);
11691171
}
11701172
}
11711173
}

0 commit comments

Comments
 (0)