File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
crates/intrinsic-test/src/common Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -79,12 +79,16 @@ pub trait SupportedArchitectureTest {
7979 trace ! ( "compiling mod_{i}.cpp" ) ;
8080 if let Some ( cpp_compiler) = cpp_compiler_wrapped. as_ref ( ) {
8181 let compile_output = cpp_compiler
82- . compile_object_file ( & format ! ( "mod_{i}.cpp" ) , & format ! ( "mod_{i}.o" ) ) ;
82+ . compile_object_file ( & format ! ( "mod_{i}.cpp" ) , & format ! ( "mod_{i}.o" ) )
83+ . map_err ( |e| format ! ( "Error compiling mod_{i}.cpp: {e:?}" ) ) ?;
84+
85+ assert ! (
86+ compile_output. status. success( ) ,
87+ "{}" ,
88+ String :: from_utf8_lossy( & compile_output. stderr)
89+ ) ;
8390
8491 trace ! ( "finished compiling mod_{i}.cpp" ) ;
85- if let Err ( compile_error) = compile_output {
86- return Err ( format ! ( "Error compiling mod_{i}.cpp: {compile_error:?}" ) ) ;
87- }
8892 }
8993 Ok ( ( ) )
9094 } )
You can’t perform that action at this time.
0 commit comments