Skip to content

Commit aa028cd

Browse files
committed
remove another status code check is should-ice
1 parent 32f3fe7 commit aa028cd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/tools/compiletest/src/runtest.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,12 @@ impl<'test> TestCx<'test> {
434434
}
435435

436436
fn check_correct_failure_status(&self, proc_res: &ProcRes) {
437-
let expected_status = Some(self.props.failure_status);
437+
let expected_status =
438+
if self.props.should_ice {
439+
Some(101)
440+
} else {
441+
Some(self.props.failure_status)
442+
};
438443
let received_status = proc_res.status.code();
439444

440445
if expected_status != received_status {

0 commit comments

Comments
 (0)