@@ -364,13 +364,16 @@ impl<'test> TestCx<'test> {
364364 fn run_crash_test ( & self ) {
365365 let pm = self . pass_mode ( ) ;
366366 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+ */
367373
368374 // 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" ) ) ;
374377 }
375378 }
376379
@@ -2322,9 +2325,6 @@ impl<'test> TestCx<'test> {
23222325 }
23232326
23242327 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( ) ) ;
23282328
23292329 let result = ProcRes {
23302330 status,
0 commit comments