id summary reporter owner description type status milestone component version severity resolution keywords cc 6004 boost thread unit test module bug on Microsoft Visual Studio debug mode gilgil1973@… viboes "Hi, glad to see you. I've figured out the bug of unit test on MSVC debug mode. if I use BOOST_CHECK in working thread, it does not work correctly. You can download source codes and video clip at http://www.gilgil.net/10328 . Thank you. -------------------- source code -------------------- #define BOOST_TEST_MODULE MyUnitTest #include #include BOOST_AUTO_TEST_SUITE ( MySuite ); void func() { BOOST_CHECK ( true ); } BOOST_AUTO_TEST_CASE( ThreadTest ) { static const int THREAD_CNT = 1000; boost::thread* t[THREAD_CNT]; for (int i = 0; i < THREAD_CNT; i++) { t[i] = new boost::thread(func); } for (int i = 0; i < THREAD_CNT; i++) { t[i]->join(); } for (int i = 0; i < THREAD_CNT; i++) { delete t[i]; } } BOOST_AUTO_TEST_SUITE_END (); // MySuite " Bugs closed To Be Determined test Boost 1.47.0 Problem fixed thread BOOST_CHECK bug viboes