eclipse-sumo / sumo

Eclipse SUMO is an open source, highly portable, microscopic and continuous traffic simulation package designed to handle large networks. It allows for intermodal simulation including pedestrians and comes with a large set of tools for scenario creation.
https://eclipse.dev/sumo
Eclipse Public License 2.0
2.5k stars 1.41k forks source link

unittests do not run on Windows #9338

Open behrisch opened 2 years ago

behrisch commented 2 years ago

They all crash in a dynamic initializer. It affects debug and release build. I tried to

set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)

and

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DGTEST_LINKED_AS_SHARED_LIBRARY=1")

as recommended in https://github.com/google/googletest/blob/master/googletest/README.md without result. Maybe we need to go back to building it directly with SUMO or at least check why it still worked a month ago: https://sumo.dlr.de/daily/msvc16x64report/complex/test_default_16Sep2021_16Sep21rv1_10_0+0691-f571d8a6076.html

behrisch commented 2 years ago

The debug build is still affected but maybe that is not so important