remove another status code check is should-ice

This commit is contained in:
Quentin Boyer 2019-11-03 17:37:35 +01:00
parent 32f3fe7a6d
commit aa028cdc99

View file

@ -434,7 +434,12 @@ impl<'test> TestCx<'test> {
}
fn check_correct_failure_status(&self, proc_res: &ProcRes) {
let expected_status = Some(self.props.failure_status);
let expected_status =
if self.props.should_ice {
Some(101)
} else {
Some(self.props.failure_status)
};
let received_status = proc_res.status.code();
if expected_status != received_status {