boost unit test how to disable memory leak check

// 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

Run the unit test executable with parameter: --detect_memory_leak=0
With Kind Regards,
Ovanes
On Fri, May 23, 2008 at 1:06 PM, Selçuk Giray Özdamar
*// 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
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 ->
.....
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
Ovanes Markarian
-
Selçuk Giray Özdamar