Changeset dc5413 for molecuilder/src/unittests/vectorunittest.cpp
- Timestamp:
- Feb 26, 2010, 1:57:01 PM (16 years ago)
- Children:
- 78b9d9, d50264
- Parents:
- e65cc0 (diff), 45cc89 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
molecuilder/src/unittests/vectorunittest.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/unittests/vectorunittest.cpp
re65cc0 rdc5413 14 14 15 15 #include "defs.hpp" 16 #include "log.hpp" 17 #include "memoryusageobserver.hpp" 16 18 #include "vector.hpp" 17 19 #include "vectorunittest.hpp" 20 21 #ifdef HAVE_TESTRUNNER 22 #include "UnitTestMain.hpp" 23 #endif /*HAVE_TESTRUNNER*/ 18 24 19 25 /********************************************** Test classes **************************************/ … … 35 41 void VectorTest::tearDown() 36 42 { 43 MemoryUsageObserver::purgeInstance(); 44 logger::purgeInstance(); 45 errorLogger::purgeInstance(); 37 46 }; 38 47 … … 290 299 } 291 300 292 293 /********************************************** Main routine **************************************/294 295 int main(int argc, char **argv)296 {297 // Get the top level suite from the registry298 CppUnit::Test *suite = CppUnit::TestFactoryRegistry::getRegistry().makeTest();299 300 // Adds the test to the list of test to run301 CppUnit::TextUi::TestRunner runner;302 runner.addTest( suite );303 304 // Change the default outputter to a compiler error format outputter305 runner.setOutputter( new CppUnit::CompilerOutputter( &runner.result(),306 std::cerr ) );307 // Run the tests.308 bool wasSucessful = runner.run();309 310 // Return error code 1 if the one of test failed.311 return wasSucessful ? 0 : 1;312 };
Note:
See TracChangeset
for help on using the changeset viewer.
