@@ -364,13 +364,16 @@ impl<'test> TestCx<'test> {
364
364
fn run_crash_test ( & self ) {
365
365
let pm = self . pass_mode ( ) ;
366
366
let proc_res = self . compile_test ( WillExecute :: No , self . should_emit_metadata ( pm) ) ;
367
+ /*
368
+ eprintln!("{}", proc_res.status);
369
+ eprintln!("{}", proc_res.stdout);
370
+ eprintln!("{}", proc_res.stderr);
371
+ eprintln!("{}", proc_res.cmdline);
372
+ */
367
373
368
374
// if a test does not crash, consider it an error
369
- if !proc_res. status . success ( ) {
370
- match proc_res. status . code ( ) {
371
- Some ( 1 | 0 ) => self . fatal ( & format ! ( "test no longer crashes/triggers ICE! Please annotate it and add it as test to tests/ui or wherever you see fit" ) ) ,
372
- _ => ( ) ,
373
- }
375
+ if proc_res. status . success ( ) || matches ! ( proc_res. status. code( ) , Some ( 1 | 0 ) ) {
376
+ self . fatal ( & format ! ( "test no longer crashes/triggers ICE! Please annotate it and add it as test to tests/ui or wherever you see fit" ) ) ;
374
377
}
375
378
}
376
379
@@ -2322,9 +2325,6 @@ impl<'test> TestCx<'test> {
2322
2325
}
2323
2326
2324
2327
let ( Output { status, stdout, stderr } , truncated) = self . read2_abbreviated ( child) ;
2325
- eprintln ! ( "{:?}" , status) ;
2326
- eprintln ! ( "{}" , String :: from_utf8_lossy( & stdout) . into_owned( ) ) ;
2327
- eprintln ! ( "{}" , String :: from_utf8_lossy( & stdout) . into_owned( ) ) ;
2328
2328
2329
2329
let result = ProcRes {
2330
2330
status,
0 commit comments