Changeset dc5413 for molecuilder/src/unittests/stackclassunittest.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/stackclassunittest.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/unittests/stackclassunittest.cpp
re65cc0 rdc5413 14 14 #include "stackclassunittest.hpp" 15 15 #include "log.hpp" 16 17 #ifdef HAVE_TESTRUNNER 18 #include "UnitTestMain.hpp" 19 #endif /*HAVE_TESTRUNNER*/ 16 20 17 21 enum { testdimension=3 }; … … 33 37 Stack->ClearStack(); 34 38 delete(Stack); 39 MemoryUsageObserver::purgeInstance(); 40 logger::purgeInstance(); 35 41 }; 36 42 … … 67 73 CPPUNIT_ASSERT_EQUAL(0, Stack->ItemCount()); 68 74 }; 69 70 71 /********************************************** Main routine **************************************/72 73 int main(int argc, char **argv)74 {75 // Get the top level suite from the registry76 CppUnit::Test *suite = CppUnit::TestFactoryRegistry::getRegistry().makeTest();77 78 // Adds the test to the list of test to run79 CppUnit::TextUi::TestRunner runner;80 runner.addTest( suite );81 82 // Change the default outputter to a compiler error format outputter83 runner.setOutputter( new CppUnit::CompilerOutputter( &runner.result(),84 std::cerr ) );85 // Run the tests.86 bool wasSucessful = runner.run();87 88 // Return error code 1 if the one of test failed.89 return wasSucessful ? 0 : 1;90 };
Note:
See TracChangeset
for help on using the changeset viewer.
