- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/unittests/gslmatrixsymmetricunittest.cpp
r865272f r9b6b2f 13 13 14 14 #include "gslmatrixsymmetricunittest.hpp" 15 16 #ifdef HAVE_TESTRUNNER 17 #include "UnitTestMain.hpp" 18 #endif /*HAVE_TESTRUNNER*/ 15 19 16 20 /********************************************** Test classes **************************************/ … … 266 270 CPPUNIT_ASSERT_EQUAL( -26.5, m->Determinant() ); 267 271 }; 268 269 /********************************************** Main routine **************************************/270 271 int main(int argc, char **argv)272 {273 // Get the top level suite from the registry274 CppUnit::Test *suite = CppUnit::TestFactoryRegistry::getRegistry().makeTest();275 276 // Adds the test to the list of test to run277 CppUnit::TextUi::TestRunner runner;278 runner.addTest( suite );279 280 // Change the default outputter to a compiler error format outputter281 runner.setOutputter( new CppUnit::CompilerOutputter( &runner.result(),282 std::cerr ) );283 // Run the tests.284 bool wasSucessful = runner.run();285 286 // Return error code 1 if the one of test failed.287 return wasSucessful ? 0 : 1;288 };
Note:
See TracChangeset
for help on using the changeset viewer.