Changeset 44becc for molecuilder/src/unittests/bondgraphunittest.cpp
- Timestamp:
- Feb 25, 2010, 2:17:15 PM (16 years ago)
- Children:
- 0de871, 36c5cf
- Parents:
- 1aa81a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/unittests/bondgraphunittest.cpp
r1aa81a r44becc 23 23 #include "periodentafel.hpp" 24 24 #include "bondgraphunittest.hpp" 25 26 #ifdef HAVE_TESTRUNNER 27 #include "UnitTestMain.hpp" 28 #endif /*HAVE_TESTRUNNER*/ 25 29 26 30 /********************************************** Test classes **************************************/ … … 123 127 CPPUNIT_ASSERT_EQUAL( true , Walker->IsBondedTo(Runner) ); 124 128 }; 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.