@@ -423,27 +423,24 @@ def perform_unit_tests(cpp_library, file_config)
423
423
puts
424
424
compilers . each do |gcc_binary |
425
425
# before compiling the tests, build a shared library of everything except the test code
426
- if build_shared_library ( gcc_binary , p , config , cpp_library )
427
- # now build and run each test using the shared library build above
428
- config . allowable_unittest_files ( cpp_library . test_files ) . each do |unittest_path |
429
- unittest_name = unittest_path . basename . to_s
430
- puts "--------------------------------------------------------------------------------"
431
- attempt_multiline ( "Unit testing #{ unittest_name } with #{ gcc_binary } for #{ p } " ) do
432
- exe = cpp_library . build_for_test_with_configuration (
433
- unittest_path ,
434
- config . aux_libraries_for_unittest ,
435
- gcc_binary ,
436
- config . gcc_config ( p )
437
- )
438
- puts
439
- unless exe
440
- puts "Last command: #{ cpp_library . last_cmd } "
441
- puts cpp_library . last_out
442
- puts cpp_library . last_err
443
- next false
444
- end
445
- cpp_library . run_test_file ( exe )
426
+ next unless build_shared_library ( gcc_binary , p , config , cpp_library )
427
+ # now build and run each test using the shared library build above
428
+ config . allowable_unittest_files ( cpp_library . test_files ) . each do |unittest_path |
429
+ unittest_name = unittest_path . basename . to_s
430
+ puts "--------------------------------------------------------------------------------"
431
+ attempt_multiline ( "Unit testing #{ unittest_name } with #{ gcc_binary } for #{ p } " ) do
432
+ exe = cpp_library . build_for_test_with_configuration (
433
+ unittest_path ,
434
+ gcc_binary
435
+ )
436
+ puts
437
+ unless exe
438
+ puts "Last command: #{ cpp_library . last_cmd } "
439
+ puts cpp_library . last_out
440
+ puts cpp_library . last_err
441
+ next false
446
442
end
443
+ cpp_library . run_test_file ( exe )
447
444
end
448
445
end
449
446
end
0 commit comments