Changeset dc5413 for molecuilder/src/unittests/bondgraphunittest.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/bondgraphunittest.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/unittests/bondgraphunittest.cpp
re65cc0 rdc5413 24 24 #include "periodentafel.hpp" 25 25 #include "bondgraphunittest.hpp" 26 #include "World.hpp" 27 28 #ifdef HAVE_TESTRUNNER 29 #include "UnitTestMain.hpp" 30 #endif /*HAVE_TESTRUNNER*/ 26 31 27 32 /********************************************** Test classes **************************************/ … … 98 103 // remove molecule 99 104 World::get()->destroyMolecule(TestMolecule); 100 // note that all the atoms are cleaned by TestMolecule 105 // note that all the atoms, molecules, the tafel and the elements 106 // are all cleaned when the world is destroyed 101 107 World::destroy(); 108 MemoryUsageObserver::purgeInstance(); 109 logger::purgeInstance(); 102 110 }; 103 111 … … 123 131 CPPUNIT_ASSERT_EQUAL( true , Walker->IsBondedTo(Runner) ); 124 132 }; 125 126 127 /********************************************** Main routine **************************************/128 129 int main(int argc, char **argv)130 {131 // Get the top level suite from the registry132 CppUnit::Test *suite = CppUnit::TestFactoryRegistry::getRegistry().makeTest();133 134 // Adds the test to the list of test to run135 CppUnit::TextUi::TestRunner runner;136 runner.addTest( suite );137 138 // Change the default outputter to a compiler error format outputter139 runner.setOutputter( new CppUnit::CompilerOutputter( &runner.result(),140 std::cerr ) );141 // Run the tests.142 bool wasSucessful = runner.run();143 144 // Return error code 1 if the one of test failed.145 return wasSucessful ? 0 : 1;146 };
Note:
See TracChangeset
for help on using the changeset viewer.
