- File:
-
- 1 edited
-
src/unittests/gslvectorunittest.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/unittests/gslvectorunittest.cpp
r9fb860 r9b6b2f 13 13 14 14 #include "gslvectorunittest.hpp" 15 16 #ifdef HAVE_TESTRUNNER 17 #include "UnitTestMain.hpp" 18 #endif /*HAVE_TESTRUNNER*/ 15 19 16 20 /********************************************** Test classes **************************************/ … … 113 117 CPPUNIT_ASSERT_EQUAL( (double)(3-j), v->Get(j) ); 114 118 }; 115 116 117 /********************************************** Main routine **************************************/118 119 int main(int argc, char **argv)120 {121 // Get the top level suite from the registry122 CppUnit::Test *suite = CppUnit::TestFactoryRegistry::getRegistry().makeTest();123 124 // Adds the test to the list of test to run125 CppUnit::TextUi::TestRunner runner;126 runner.addTest( suite );127 128 // Change the default outputter to a compiler error format outputter129 runner.setOutputter( new CppUnit::CompilerOutputter( &runner.result(),130 std::cerr ) );131 // Run the tests.132 bool wasSucessful = runner.run();133 134 // Return error code 1 if the one of test failed.135 return wasSucessful ? 0 : 1;136 };
Note:
See TracChangeset
for help on using the changeset viewer.
