File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/tools/compiletest/src Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -412,7 +412,7 @@ impl<'test> TestCx<'test> {
412
412
cmdline : format ! ( "{cmd:?}" ) ,
413
413
} ;
414
414
self . dump_output (
415
- self . config . verbose ,
415
+ self . config . verbose || !proc_res . status . success ( ) ,
416
416
& cmd. get_program ( ) . to_string_lossy ( ) ,
417
417
& proc_res. stdout ,
418
418
& proc_res. stderr ,
@@ -1486,7 +1486,7 @@ impl<'test> TestCx<'test> {
1486
1486
} ;
1487
1487
1488
1488
self . dump_output (
1489
- self . config . verbose ,
1489
+ self . config . verbose || ( !result . status . success ( ) && self . config . mode != TestMode :: Ui ) ,
1490
1490
& command. get_program ( ) . to_string_lossy ( ) ,
1491
1491
& result. stdout ,
1492
1492
& result. stderr ,
@@ -2983,6 +2983,7 @@ struct ProcArgs {
2983
2983
args : Vec < OsString > ,
2984
2984
}
2985
2985
2986
+ #[ derive( Debug ) ]
2986
2987
pub struct ProcRes {
2987
2988
status : ExitStatus ,
2988
2989
stdout : String ,
You can’t perform that action at this time.
0 commit comments