- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/unittests/gslmatrixsymmetricunittest.cpp
r9b6b2f r865272f 13 13 14 14 #include "gslmatrixsymmetricunittest.hpp" 15 16 #ifdef HAVE_TESTRUNNER17 #include "UnitTestMain.hpp"18 #endif /*HAVE_TESTRUNNER*/19 15 20 16 /********************************************** Test classes **************************************/ … … 270 266 CPPUNIT_ASSERT_EQUAL( -26.5, m->Determinant() ); 271 267 }; 268 269 /********************************************** Main routine **************************************/ 270 271 int main(int argc, char **argv) 272 { 273 // Get the top level suite from the registry 274 CppUnit::Test *suite = CppUnit::TestFactoryRegistry::getRegistry().makeTest(); 275 276 // Adds the test to the list of test to run 277 CppUnit::TextUi::TestRunner runner; 278 runner.addTest( suite ); 279 280 // Change the default outputter to a compiler error format outputter 281 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.