File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
crates/intrinsic-test/src Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -624,14 +624,21 @@ 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}\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+ ) ;
628633 return Some ( FailureReason :: RunC ( intrinsic. name . clone ( ) ) ) ;
629634 }
630635
631636 if !rust. status . success ( ) {
632637 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( "" ) ,
635642 ) ;
636643 return Some ( FailureReason :: RunRust ( intrinsic. name . clone ( ) ) ) ;
637644 }
You can’t perform that action at this time.
0 commit comments