File tree 1 file changed +16
-3
lines changed
crates/intrinsic-test/src
1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -624,14 +624,27 @@ 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} - {error}" ,
629
+ intrinsic = intrinsic. name,
630
+ error = String :: from_utf8( c. stderr) . unwrap_or(
631
+ String :: from_utf8( c. stdout) . unwrap_or(
632
+ "C program produced no output to `stderr` or `stdout`" . to_string( )
633
+ )
634
+ )
635
+ ) ;
628
636
return Some ( FailureReason :: RunC ( intrinsic. name . clone ( ) ) ) ;
629
637
}
630
638
631
639
if !rust. status . success ( ) {
632
640
error ! (
633
- "Failed to run rust program for intrinsic {}" ,
634
- intrinsic. name
641
+ "Failed to run Rust program for intrinsic {intrinsic} - {error}" ,
642
+ intrinsic = intrinsic. name,
643
+ error = String :: from_utf8( rust. stderr) . unwrap_or(
644
+ String :: from_utf8( rust. stdout) . unwrap_or(
645
+ "Rust program produced no output to `stderr` or `stdout`" . to_string( )
646
+ )
647
+ )
635
648
) ;
636
649
return Some ( FailureReason :: RunRust ( intrinsic. name . clone ( ) ) ) ;
637
650
}
You can’t perform that action at this time.
0 commit comments