We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9305e60 commit 5852a3fCopy full SHA for 5852a3f
src/tools/compiletest/src/header.rs
@@ -585,6 +585,9 @@ impl TestProps {
585
_ => 1,
586
};
587
}
588
+ if self.should_ice {
589
+ self.failure_status = 101;
590
+ }
591
592
for key in &["RUST_TEST_NOCAPTURE", "RUST_TEST_THREADS"] {
593
if let Ok(val) = env::var(key) {
src/tools/compiletest/src/runtest.rs
@@ -434,12 +434,7 @@ impl<'test> TestCx<'test> {
434
435
436
fn check_correct_failure_status(&self, proc_res: &ProcRes) {
437
- let expected_status =
438
- if self.props.should_ice {
439
- Some(101)
440
- } else {
441
- Some(self.props.failure_status)
442
- };
+ let expected_status = Some(self.props.failure_status);
443
let received_status = proc_res.status.code();
444
445
if expected_status != received_status {
0 commit comments