mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-20 04:34:48 +00:00
Only check memory if a flag is set.
This commit is contained in:
parent
caa915d0ec
commit
ec34d9928c
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Reference in a new issue