File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed
crates/intrinsic-test/src Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -624,14 +624,27 @@ fn compare_outputs(
624624 } ;
625625
626626 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+ ) ;
628636 return Some ( FailureReason :: RunC ( intrinsic. name . clone ( ) ) ) ;
629637 }
630638
631639 if !rust. status . success ( ) {
632640 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+ )
635648 ) ;
636649 return Some ( FailureReason :: RunRust ( intrinsic. name . clone ( ) ) ) ;
637650 }
You can’t perform that action at this time.
0 commit comments