Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
--detect_memory_leaks

If the execution environment supports the detection of memory leaks, this argument controls whether or not the test runner reports memory leaks. After running the tests, a memory leak report is issued showing the allocation number and the amount of memory leaked.

Values greater than 1 for this argument cause a trap to the debugger for a particular memory allocation number. Currently, this option is only implemented for Microsoft compilers.

Value

Meaning

0

Do not detect memory leaks.

1 (default)

Detect memory leaks and issue a memory leak report.

number

Break on allocation number.

Environment variable: BOOST_TEST_DETECT_MEMORY_LEAKS


PrevUpHomeNext