Skip to content

Commit

Permalink
compiletest: detect non-ICE compiler panics
Browse files Browse the repository at this point in the history
  • Loading branch information
cuviper committed Apr 24, 2018
1 parent f5203d1 commit cc48ae5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tools/compiletest/src/runtest.rs
Expand Up @@ -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);
}
}
}
Expand Down

0 comments on commit cc48ae5

Please sign in to comment.