Merge branch 'add-gtest' into gtest-tests

This commit is contained in:
Daniel Buckmaster 2014-07-08 18:33:12 +02:00
commit dcd51d9b98

View file

@ -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 );