File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -271,12 +271,16 @@ def verified_install(backend, path)
271271 end
272272
273273 test_files = Pathname . glob ( Pathname . new ( cpp_lib_path ) + "test" + "*.cpp" )
274- test_files . each do |path |
275- expected = path . basename . to_s . include? ( "good" )
276- config . compilers_to_use . each do |compiler |
274+ config . compilers_to_use . each do |compiler |
275+ has_shared_lib = false
276+ test_files . each do |path |
277+ expected = path . basename . to_s . include? ( "good" )
277278 it "tests #{ File . basename ( path ) } with #{ compiler } expecting #{ expected } " do
278- exe = @cpp_library . build_shared_library ( [ ] , compiler , config . gcc_config ( "uno" ) )
279- expect ( exe ) . not_to be nil
279+ unless has_shared_lib
280+ lib = @cpp_library . build_shared_library ( [ ] , compiler , config . gcc_config ( "uno" ) )
281+ expect ( lib ) . not_to be nil
282+ has_shared_lib
283+ end
280284 exe = @cpp_library . build_for_test ( path , compiler )
281285 expect ( exe ) . not_to be nil
282286 expect ( @cpp_library . run_test_file ( exe ) ) . to eq ( expected )
You can’t perform that action at this time.
0 commit comments