boost.test??DLL?????????????????
???????????? ???????[ 2013/8/28 17:22:19 ] ????????
????????????????????????????????????????????д??????????
????2. ??? console_test_runner.exe
????console_test_runner.exe??boost??????????????????????????
????1). ????б????? bjam
????2). ?????????±??? console_test_runner?????????bjam libs est oolsconsole_test_runner
????3). ??????? console_test_runner.exe??boost_unit_test_framework-vc80-mt-gd-1_51.dll ????????????????
????4). ??????????ó????? dll ?е?????????????dll????????? BOOST_TEST_DYN_LINK?????? dll ?????? ???? boost_unit_test_framework-vc80-mt-gd-1_51.lib
????5). ???????: console_test_runner.exe --test xxx.dll ??????????
?????????????? dll ??д?????????????????
// dll??
BOOST_AUTO_TEST_CASE( test1 )
{
int i = 0;
BOOST_CHECK_EQUAL( i?? 2 );
}
BOOST_AUTO_TEST_CASE( test2 )
{
BOOST_CHECKPOINT("About to force division by zero!");
int i = 1?? j = 0;
i = i / j;
}
extern "C" {
#ifdef BOOST_WINDOWS
declspec(dllexport)
#endif bool init_unit_test()
{
framework::master_test_suite().p_name.value = "Test runner test";
return true;
}
}
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11