Changeset 44becc for molecuilder/src/unittests/vectorunittest.cpp
- Timestamp:
- Feb 25, 2010, 2:17:15 PM (16 years ago)
- Children:
- 0de871, 36c5cf
- Parents:
- 1aa81a
- File:
-
- 1 edited
-
molecuilder/src/unittests/vectorunittest.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/unittests/vectorunittest.cpp
r1aa81a r44becc 16 16 #include "vector.hpp" 17 17 #include "vectorunittest.hpp" 18 19 #ifdef HAVE_TESTRUNNER 20 #include "UnitTestMain.hpp" 21 #endif /*HAVE_TESTRUNNER*/ 18 22 19 23 /********************************************** Test classes **************************************/ … … 290 294 } 291 295 292 293 /********************************************** Main routine **************************************/294 295 int main(int argc, char **argv)296 {297 // Get the top level suite from the registry298 CppUnit::Test *suite = CppUnit::TestFactoryRegistry::getRegistry().makeTest();299 300 // Adds the test to the list of test to run301 CppUnit::TextUi::TestRunner runner;302 runner.addTest( suite );303 304 // Change the default outputter to a compiler error format outputter305 runner.setOutputter( new CppUnit::CompilerOutputter( &runner.result(),306 std::cerr ) );307 // Run the tests.308 bool wasSucessful = runner.run();309 310 // Return error code 1 if the one of test failed.311 return wasSucessful ? 0 : 1;312 };
Note:
See TracChangeset
for help on using the changeset viewer.
