- 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
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/unittests/AnalysisCorrelationToSurfaceUnitTest.cpp
re65cc0 rdc5413 25 25 #include "periodentafel.hpp" 26 26 #include "tesselation.hpp" 27 #include "World.hpp" 28 29 #ifdef HAVE_TESTRUNNER 30 #include "UnitTestMain.hpp" 31 #endif /*HAVE_TESTRUNNER*/ 27 32 28 33 /********************************************** Test classes **************************************/ … … 131 136 delete(LC); 132 137 World::destroy(); 138 MemoryUsageObserver::purgeInstance(); 139 logger::purgeInstance(); 133 140 }; 134 141 … … 209 216 210 217 }; 211 212 /********************************************** Main routine **************************************/213 214 int main(int argc, char **argv)215 {216 // Get the top level suite from the registry217 CppUnit::Test *suite = CppUnit::TestFactoryRegistry::getRegistry().makeTest();218 219 // Adds the test to the list of test to run220 CppUnit::TextUi::TestRunner runner;221 runner.addTest( suite );222 223 // Change the default outputter to a compiler error format outputter224 runner.setOutputter( new CppUnit::CompilerOutputter( &runner.result(),225 std::cerr ) );226 // Run the tests.227 bool wasSucessful = runner.run();228 229 // Return error code 1 if the one of test failed.230 return wasSucessful ? 0 : 1;231 };
Note:
See TracChangeset
for help on using the changeset viewer.
