Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 2:82161d9e7b36, committed 2014-06-19
- Comitter:
- Rohit Grover
- Date:
- Thu Jun 19 08:24:31 2014 +0100
- Parent:
- 1:4769360130ed
- Commit message:
- uncomment the code in CommandLineTestRunner::RunAllTests() having to do with MemoryLeakWarningPlugin
Bas Vodde, from the CppUTest development team has suggested an alternate way to run tests.
Changed in this revision
| src/CppUTest/CommandLineTestRunner.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/src/CppUTest/CommandLineTestRunner.cpp Tue Jun 17 15:52:54 2014 +0100
+++ b/src/CppUTest/CommandLineTestRunner.cpp Thu Jun 19 08:24:31 2014 +0100
@@ -53,19 +53,19 @@
int result = 0;
ConsoleTestOutput output;
- // MemoryLeakWarningPlugin memLeakWarn(DEF_PLUGIN_MEM_LEAK);
- // memLeakWarn.destroyGlobalDetectorAndTurnOffMemoryLeakDetectionInDestructor(true);
- // TestRegistry::getCurrentRegistry()->installPlugin(&memLeakWarn);
+ MemoryLeakWarningPlugin memLeakWarn(DEF_PLUGIN_MEM_LEAK);
+ memLeakWarn.destroyGlobalDetectorAndTurnOffMemoryLeakDetectionInDestructor(true);
+ TestRegistry::getCurrentRegistry()->installPlugin(&memLeakWarn);
{
CommandLineTestRunner runner(ac, av, &output, TestRegistry::getCurrentRegistry());
result = runner.runAllTestsMain();
}
- // if (result == 0) {
- // output << memLeakWarn.FinalReport(0);
- // }
- // TestRegistry::getCurrentRegistry()->removePluginByName(DEF_PLUGIN_MEM_LEAK);
+ if (result == 0) {
+ output << memLeakWarn.FinalReport(0);
+ }
+ TestRegistry::getCurrentRegistry()->removePluginByName(DEF_PLUGIN_MEM_LEAK);
return result;
}