Changes in src/unittests/CacheableTest.cpp [2ba827:9b6b2f]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/unittests/CacheableTest.cpp ¶
r2ba827 r9b6b2f 15 15 16 16 #include "Patterns/Cacheable.hpp" 17 18 #ifdef HAVE_TESTRUNNER 19 #include "UnitTestMain.hpp" 20 #endif /*HAVE_TESTRUNNER*/ 21 22 /********************************************** Test classes **************************************/ 17 23 18 24 // Registers the fixture into the 'registry' … … 77 83 CPPUNIT_ASSERT_EQUAL( true, numbers->hasRecalced); 78 84 } 79 80 81 82 /********************************************** Main routine **************************************/83 84 int main(int argc, char **argv)85 {86 // Get the top level suite from the registry87 CppUnit::Test *suite = CppUnit::TestFactoryRegistry::getRegistry().makeTest();88 89 // Adds the test to the list of test to run90 CppUnit::TextUi::TestRunner runner;91 runner.addTest( suite );92 93 // Change the default outputter to a compiler error format outputter94 runner.setOutputter( new CppUnit::CompilerOutputter( &runner.result(),95 std::cerr ) );96 // Run the tests.97 bool wasSucessful = runner.run();98 99 // Return error code 1 if the one of test failed.100 return wasSucessful ? 0 : 1;101 };102
Note:
See TracChangeset
for help on using the changeset viewer.