} else {
check_error_patterns(props, testfile, &proc_res);
}
+ check_no_compiler_crash(&proc_res);
}
fn run_rfail_test(config: &config, props: &TestProps, testfile: &Path) {
}
}
+fn check_no_compiler_crash(proc_res: &ProcRes) {
+ for line in proc_res.stderr.lines() {
+ if line.starts_with("error: internal compiler error:") {
+ fatal_ProcRes("compiler encountered internal error".to_owned(),
+ proc_res);
+ }
+ }
+}
+
fn check_expected_errors(expected_errors: Vec<errors::ExpectedError> ,
testfile: &Path,
proc_res: &ProcRes) {