[test] detect_memory_leak option in msvc 8

Hi, I am trying to get the --detect_memory_leak=1 option to detect a memory leak in my code. Here is my file: #include <boost/test/unit_test.hpp> using namespace boost::unit_test; void memory_leak() { int* p = new int(1); // delete p; } test_suite* init_unit_test_suite(int argc, char* argv[]) { test_suite* test = BOOST_TEST_SUITE("memory leak test"); test->add(BOOST_TEST_CASE(&memory_leak)); return test; } Here is my Jamroot: import testing ; lib_sources = /site-config//boost_unit_test_framework /site-config//uuid ; alias regression : [ run test1.cpp $(lib_sources) : --build_info=yes --detect_memory_leak=yes --output_format=XML --log_level=all --report_level=all --catch_system_error=yes --result_code=no --report_level=detailed : : : test1 ] ; This doesn't seem to give me any indication of a memory leak. Chris
participants (1)
-
Chris Weed