int CommandLineTestRunner::RunAllTests(int ac, const char** av) { int result = 0; ConsoleTestOutput output; MemoryLeakWarningPlugin memLeakWarn(DEF_PLUGIN_MEM_LEAK); memLeakWarn.destroyGlobalDetectorAndTurnOffMemoryLeakDetectionInDestructor(true); TestRegistry::getCurrentRegistry()->installPlugin(&memLeakWarn); { CommandLineTestRunner runner(ac, av, &output); result = runner.runAllTestsMain(); } if (result == 0) { output << memLeakWarn.FinalReport(0); } return result; }
int CommandLineTestRunner::RunAllTests(int ac, const char** av) { int result = 0; ConsoleTestOutput output; MemoryLeakWarningPlugin memLeakWarn(DEF_PLUGIN_MEM_LEAK); //memLeakWarn.disable(); TestRegistry::getCurrentRegistry()->installPlugin(&memLeakWarn); { CommandLineTestRunner runner(ac, av, &output); result = runner.runAllTestsMain(); } if (result == 0) { output << memLeakWarn.FinalReport(0); } return result; }