// my_test.cpp
BOOST_AUTO_TEST_SUITE(
my_test_suite_01 )
struct F {
F() {
BOOST_TEST_MESSAGE(
"setup fixture my_test_suite_01" );
}
~F(){
BOOST_TEST_MESSAGE(
"teardown fixture my_test_suite_01" );
}
};
BOOST_FIXTURE_TEST_CASE(
my_test_01, F
)
{
Data d();
BOOST_CHECK( d.isNew() );
BOOST_CHECK_EQUAL(d.value(), 0.0f);
}
BOOST_AUTO_TEST_SUITE_END()
//
Main.cpp
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
While
running unit tests (boost unit test) I’m also getting memory leak
results. Is there any way to disable memory leak test. I only want to see the
unit test results.
Running 11 test
cases...
*** No errors
detected
Detected memory
leaks!
Dumping objects ->
.....