- File:
-
- 1 edited
-
src/unittests/memoryallocatorunittest.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/unittests/memoryallocatorunittest.cpp
re6fdbe re138de 13 13 #include "memoryallocatorunittest.hpp" 14 14 #include "helpers.hpp" 15 #include "log.hpp"16 15 #include "defs.hpp" 17 18 #ifdef HAVE_TESTRUNNER19 #include "UnitTestMain.hpp"20 #endif /*HAVE_TESTRUNNER*/21 16 22 17 /********************************************** Test classes **************************************/ … … 34 29 { 35 30 MemoryUsageObserver::getInstance()->purgeInstance(); 36 logger::purgeInstance();37 31 }; 38 32 … … 108 102 Free(buffer2); 109 103 }; 104 105 106 /********************************************** Main routine **************************************/ 107 108 int main(int argc, char **argv) 109 { 110 // Get the top level suite from the registry 111 CppUnit::Test *suite = CppUnit::TestFactoryRegistry::getRegistry().makeTest(); 112 113 // Adds the test to the list of test to run 114 CppUnit::TextUi::TestRunner runner; 115 runner.addTest( suite ); 116 117 // Change the default outputter to a compiler error format outputter 118 runner.setOutputter( new CppUnit::CompilerOutputter( &runner.result(), 119 std::cerr ) ); 120 // Run the tests. 121 bool wasSucessful = runner.run(); 122 123 // Return error code 1 if the one of test failed. 124 return wasSucessful ? 0 : 1; 125 };
Note:
See TracChangeset
for help on using the changeset viewer.
