26 Feb
2004
26 Feb
'04
4:12 p.m.
Hi After our migration from Boost 1.30.2 to Boost 1.31.0 several multithreaded tests no longer work stable. We tracked it down to the macros BOOST_UT_LOG_BEGIN and BOOST_UT_LOG_END. When one protects this macro calls with a mutex, the tests work stable again. After the investigation we found 'Support for the testing of multithreaded programs.' on the open issues list of Boost.Test. Does this mean that Boost.Test is not thread-safe at all? Do we misuse Boost.Test by calling things like BOOST_CHECK_EQUAL, BOOST_CHECK and BOOST_REQUIRE concurrently from different threads? Any clarification on this topic is welcome. Best regards, Peter.