Changeset dc5413 for molecuilder/src/unittests/DescriptorUnittest.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
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/unittests/DescriptorUnittest.cpp
re65cc0 rdc5413 19 19 #include "atom.hpp" 20 20 21 #ifdef HAVE_TESTRUNNER 22 #include "UnitTestMain.hpp" 23 #endif /*HAVE_TESTRUNNER*/ 24 25 /********************************************** Test classes **************************************/ 21 26 // Registers the fixture into the 'registry' 22 27 CPPUNIT_TEST_SUITE_REGISTRATION( DescriptorUnittest ); … … 152 157 } 153 158 } 154 155 /********************************************** Main routine **************************************/156 157 int main(int argc, char **argv)158 {159 // Get the top level suite from the registry160 CppUnit::Test *suite = CppUnit::TestFactoryRegistry::getRegistry().makeTest();161 162 // Adds the test to the list of test to run163 CppUnit::TextUi::TestRunner runner;164 runner.addTest( suite );165 166 // Change the default outputter to a compiler error format outputter167 runner.setOutputter( new CppUnit::CompilerOutputter( &runner.result(),168 std::cerr ) );169 // Run the tests.170 bool wasSucessful = runner.run();171 172 // Return error code 1 if the one of test failed.173 return wasSucessful ? 0 : 1;174 };
Note:
See TracChangeset
for help on using the changeset viewer.