20 Oct
2010
20 Oct
'10
7:15 a.m.
Gaurav N Shah
int main(int argc, char* argv[])
{
boost::unit_test::unit_test_main(&init_test, argc, argv); //1st attempt
sleep(1 mins)
boost::unit_test::unit_test_main(&init_test, argc, argv); //2nd attempt
} On first attempt test case runs fine. However, on second attempt I get below error:
This error can't be avoided in current design. Just don't do this. What are you trying to achieve? If you are after rerunning tests within the same session with the same executable you need to implement different main. Gennadiy