File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
src/tools/compiletest/src Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -585,6 +585,9 @@ impl TestProps {
585
585
_ => 1 ,
586
586
} ;
587
587
}
588
+ if self . should_ice {
589
+ self . failure_status = 101 ;
590
+ }
588
591
589
592
for key in & [ "RUST_TEST_NOCAPTURE" , "RUST_TEST_THREADS" ] {
590
593
if let Ok ( val) = env:: var ( key) {
Original file line number Diff line number Diff line change @@ -434,12 +434,7 @@ impl<'test> TestCx<'test> {
434
434
}
435
435
436
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
- } ;
437
+ let expected_status = Some ( self . props . failure_status ) ;
443
438
let received_status = proc_res. status . code ( ) ;
444
439
445
440
if expected_status != received_status {
You can’t perform that action at this time.
0 commit comments