[Cppunit-cvs] cppunit2/examples/checking_assertions main.cpp,1.1,1.2
Brought to you by:
blep
From: Baptiste L. <bl...@us...> - 2005-08-10 04:14:23
|
Update of /cvsroot/cppunit/cppunit2/examples/checking_assertions In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30949/examples/checking_assertions Modified Files: main.cpp Log Message: * Centralized test running logic in examples/common/examplecommon.h Index: main.cpp =================================================================== RCS file: /cvsroot/cppunit/cppunit2/examples/checking_assertions/main.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** main.cpp 1 Mar 2005 22:17:41 -0000 1.1 --- main.cpp 8 Aug 2005 22:07:57 -0000 1.2 *************** *** 1,6 **** #include <cpput/testcase.h> - #include <cpput/testsuite.h> - #include <cpput/testrunner.h> // cppunit2 testrunner for opentest - #include <cpput/assert.h> #include <opentest/texttestdriver.h> #include <opentest/properties.h> --- 1,4 ---- + #include <examples/common/examplecommon.h> #include <cpput/testcase.h> #include <opentest/texttestdriver.h> #include <opentest/properties.h> *************** *** 26,36 **** allSuite->add( CppUT::makeTestCase( CppTL::cfn0( &testBasicCheckingAssertion ), "testBasicCheckingAssertion" ) ); ! CppUT::TestRunner runner; ! CppUT::AbstractTestSuitePtr rootSuite = ! CppTL::staticPointerCast<CppUT::AbstractTestSuite>( allSuite ); ! runner.setRootSuite( rootSuite ); ! ! OpenTest::TextTestDriver driver( runner ); ! bool sucessful = driver.run(); ! return sucessful ? 0 : 1; } --- 24,27 ---- allSuite->add( CppUT::makeTestCase( CppTL::cfn0( &testBasicCheckingAssertion ), "testBasicCheckingAssertion" ) ); ! return runExampleTests( argc, argv, allSuite.get() ); } |