Boost logo

Boost Users :

From: Ovanes Markarian (om_boost_at_[hidden])
Date: 2008-05-23 08:06:12


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 <selcukgiray_at_[hidden]>
wrote:

> *// 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 ->
>
> .....
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net