- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/unittests/tesselation_insideoutsideunittest.cpp
r9b6b2f r68a53b 17 17 #include "tesselation.hpp" 18 18 #include "tesselation_insideoutsideunittest.hpp" 19 20 #ifdef HAVE_TESTRUNNER21 #include "UnitTestMain.hpp"22 #endif /*HAVE_TESTRUNNER*/23 19 24 20 #define SPHERERADIUS 2. … … 165 161 } 166 162 }; 163 164 /********************************************** Main routine **************************************/ 165 166 int main(int argc, char **argv) 167 { 168 // Get the top level suite from the registry 169 CppUnit::Test *suite = CppUnit::TestFactoryRegistry::getRegistry().makeTest(); 170 171 // Adds the test to the list of test to run 172 CppUnit::TextUi::TestRunner runner; 173 runner.addTest( suite ); 174 175 // Change the default outputter to a compiler error format outputter 176 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.
