- 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/tesselation_insideoutsideunittest.cpp
r1aa81a r44becc 17 17 #include "tesselation.hpp" 18 18 #include "tesselation_insideoutsideunittest.hpp" 19 20 #ifdef HAVE_TESTRUNNER 21 #include "UnitTestMain.hpp" 22 #endif /*HAVE_TESTRUNNER*/ 19 23 20 24 #define SPHERERADIUS 2. … … 161 165 } 162 166 }; 163 164 /********************************************** Main routine **************************************/165 166 int main(int argc, char **argv)167 {168 // Get the top level suite from the registry169 CppUnit::Test *suite = CppUnit::TestFactoryRegistry::getRegistry().makeTest();170 171 // Adds the test to the list of test to run172 CppUnit::TextUi::TestRunner runner;173 runner.addTest( suite );174 175 // Change the default outputter to a compiler error format outputter176 runner.setOutputter( new CppUnit::CompilerOutputter( &runner.result(),177 std::cerr ) );178 // Run the tests.179 bool wasSucessful = runner.run();180 181 // Return error code 1 if the one of test failed.182 return wasSucessful ? 0 : 1;183 };
Note:
See TracChangeset
for help on using the changeset viewer.