- 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/AnalysisCorrelationToSurfaceUnitTest.cpp
r1aa81a r44becc 24 24 #include "periodentafel.hpp" 25 25 #include "tesselation.hpp" 26 27 #ifdef HAVE_TESTRUNNER 28 #include "UnitTestMain.hpp" 29 #endif /*HAVE_TESTRUNNER*/ 26 30 27 31 /********************************************** Test classes **************************************/ … … 211 215 212 216 }; 213 214 /********************************************** Main routine **************************************/215 216 int main(int argc, char **argv)217 {218 // Get the top level suite from the registry219 CppUnit::Test *suite = CppUnit::TestFactoryRegistry::getRegistry().makeTest();220 221 // Adds the test to the list of test to run222 CppUnit::TextUi::TestRunner runner;223 runner.addTest( suite );224 225 // Change the default outputter to a compiler error format outputter226 runner.setOutputter( new CppUnit::CompilerOutputter( &runner.result(),227 std::cerr ) );228 // Run the tests.229 bool wasSucessful = runner.run();230 231 // Return error code 1 if the one of test failed.232 return wasSucessful ? 0 : 1;233 };
Note:
See TracChangeset
for help on using the changeset viewer.
