File tree 1 file changed +10
-3
lines changed
crates/intrinsic-test/src
1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -624,14 +624,21 @@ fn compare_outputs(
624
624
} ;
625
625
626
626
if !c. status . success ( ) {
627
- error ! ( "Failed to run C program for intrinsic {}" , intrinsic. name) ;
627
+ error ! (
628
+ "Failed to run C program for intrinsic {intrinsic}\n stdout: {stdout}\n stderr: {stderr}" ,
629
+ intrinsic = intrinsic. name,
630
+ stdout = std:: str :: from_utf8( & c. stdout) . unwrap_or( "" ) ,
631
+ stderr = std:: str :: from_utf8( & c. stderr) . unwrap_or( "" ) ,
632
+ ) ;
628
633
return Some ( FailureReason :: RunC ( intrinsic. name . clone ( ) ) ) ;
629
634
}
630
635
631
636
if !rust. status . success ( ) {
632
637
error ! (
633
- "Failed to run rust program for intrinsic {}" ,
634
- intrinsic. name
638
+ "Failed to run Rust program for intrinsic {intrinsic}\n stdout: {stdout}\n stderr: {stderr}" ,
639
+ intrinsic = intrinsic. name,
640
+ stdout = std:: str :: from_utf8( & rust. stdout) . unwrap_or( "" ) ,
641
+ stderr = std:: str :: from_utf8( & rust. stderr) . unwrap_or( "" ) ,
635
642
) ;
636
643
return Some ( FailureReason :: RunRust ( intrinsic. name . clone ( ) ) ) ;
637
644
}
You can’t perform that action at this time.
0 commit comments