Hi,
I
have sample code like this:
void
test1()
{
BOOST_REQUIRE(2
==1);
}
void
test2()
{
BOOST_CHECK(1
!=1);
}
boost::unit_test::test_suite*
ts1 = BOOST_TEST_SUITE( "test_suite1"
);
ts1->add(BOOST_TEST_CASE(&test1));
ts1->add(BOOST_TEST_CASE(&test2));
::boost::framework::master_test_suite().add(ts1);
In this case I do not want test2 function to
be executed it test1 fails. How is it possible?? (I can not merge code in test1
and test2 into single function)
Thank You,
Gaurav