Commit ec34d992 authored by Daniel Buckmaster's avatar Daniel Buckmaster

Only check memory if a flag is set.

parent caa915d0
......@@ -88,8 +88,10 @@ DefineConsoleFunction( runAllUnitTests, int, (),,
// Release the default listener.
delete listeners.Release( listeners.default_result_printer() );
// Add the memory leak tester.
listeners.Append( new testing::MemoryLeakDetector );
if ( Con::getBoolVariable( "$testing::checkMemoryLeaks", false ) ) {
// Add the memory leak tester.
listeners.Append( new testing::MemoryLeakDetector );
}
// Add the Torque unit test listener.
listeners.Append( new TorqueUnitTestListener );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment