- File:
-
- 1 edited
-
src/unittests/gslvectorunittest.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/unittests/gslvectorunittest.cpp
r9b6b2f r9fb860 13 13 14 14 #include "gslvectorunittest.hpp" 15 16 #ifdef HAVE_TESTRUNNER17 #include "UnitTestMain.hpp"18 #endif /*HAVE_TESTRUNNER*/19 15 20 16 /********************************************** Test classes **************************************/ … … 117 113 CPPUNIT_ASSERT_EQUAL( (double)(3-j), v->Get(j) ); 118 114 }; 115 116 117 /********************************************** Main routine **************************************/ 118 119 int main(int argc, char **argv) 120 { 121 // Get the top level suite from the registry 122 CppUnit::Test *suite = CppUnit::TestFactoryRegistry::getRegistry().makeTest(); 123 124 // Adds the test to the list of test to run 125 CppUnit::TextUi::TestRunner runner; 126 runner.addTest( suite ); 127 128 // Change the default outputter to a compiler error format outputter 129 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.
