Boost logo

Boost Users :

From: Selçuk Giray Özdamar (selcukgiray_at_[hidden])
Date: 2008-05-23 07:06:34


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