Changeset 44becc for molecuilder/src/unittests/gslmatrixunittest.cpp
- Timestamp:
- Feb 25, 2010, 2:17:15 PM (15 years ago)
- Children:
- 0de871, 36c5cf
- Parents:
- 1aa81a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/unittests/gslmatrixunittest.cpp
r1aa81a r44becc 13 13 14 14 #include "gslmatrixunittest.hpp" 15 16 #ifdef HAVE_TESTRUNNER 17 #include "UnitTestMain.hpp" 18 #endif /*HAVE_TESTRUNNER*/ 15 19 16 20 /********************************************** Test classes **************************************/ … … 248 252 CPPUNIT_ASSERT_EQUAL( false, m->IsPositiveDefinite() ); 249 253 }; 250 251 /********************************************** Main routine **************************************/252 253 int main(int argc, char **argv)254 {255 // Get the top level suite from the registry256 CppUnit::Test *suite = CppUnit::TestFactoryRegistry::getRegistry().makeTest();257 258 // Adds the test to the list of test to run259 CppUnit::TextUi::TestRunner runner;260 runner.addTest( suite );261 262 // Change the default outputter to a compiler error format outputter263 runner.setOutputter( new CppUnit::CompilerOutputter( &runner.result(),264 std::cerr ) );265 // Run the tests.266 bool wasSucessful = runner.run();267 268 // Return error code 1 if the one of test failed.269 return wasSucessful ? 0 : 1;270 };
Note:
See TracChangeset
for help on using the changeset viewer.