[Cppunit-cvs] cppunit2/src/cpput assert.cpp,1.8,1.9 exceptionguard.cpp,1.4,1.5
Brought to you by:
blep
From: Baptiste L. <bl...@us...> - 2005-02-28 22:14:12
|
Update of /cvsroot/cppunit/cppunit2/src/cpput In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1237/src/cpput Modified Files: assert.cpp exceptionguard.cpp Log Message: * moved cpput/typehelper.h to cpptl/typename.h * renamed helper functions: getObjectTypeName(), getTypeName() and demangleTypeInfoName() * With mingw, typeinfo name is correctly extracted (skip initial digits) * added automatic detection of the presence of RTTI with msvc. Index: exceptionguard.cpp =================================================================== RCS file: /cvsroot/cppunit/cppunit2/src/cpput/exceptionguard.cpp,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** exceptionguard.cpp 27 Feb 2005 17:42:32 -0000 1.4 --- exceptionguard.cpp 28 Feb 2005 22:14:03 -0000 1.5 *************** *** 1,5 **** #include <cpput/exceptionguard.h> #include <cpput/testinfo.h> ! #include <cpput/typehelper.h> #include <cpptl/functor.h> --- 1,5 ---- #include <cpput/exceptionguard.h> #include <cpput/testinfo.h> ! #include <cpptl/typename.h> #include <cpptl/functor.h> *************** *** 57,76 **** // Already injected into result } ! #ifndef CPPTL_NO_RTTI ! catch ( const std::exception &e ) ! { ! addFault( extractObjectType( e, "std::exception" ), e.what() ); ! } ! #else // @todo Need to add catch for all standard derived classes. ! // Warning: => they don't always exist on all platforms. catch ( const std::runtime_error &e ) { ! addFault( extractObjectType( e, "std::runtime_error" ), e.what() ); } catch ( const std::exception &e ) { ! addFault( extractObjectType( e, "std::exception" ), e.what() ); } - #endif catch ( ... ) { --- 57,70 ---- // Already injected into result } ! // @todo Need to add catch for all standard derived classes. ! // Warning: => they don't always exist on all platforms. catch ( const std::runtime_error &e ) { ! addFault( CppTL::getObjectTypeName( e, "std::runtime_error" ), e.what() ); } catch ( const std::exception &e ) { ! addFault( CppTL::getObjectTypeName( e, "std::exception" ), e.what() ); } catch ( ... ) { Index: assert.cpp =================================================================== RCS file: /cvsroot/cppunit/cppunit2/src/cpput/assert.cpp,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** assert.cpp 27 Feb 2005 10:17:05 -0000 1.8 --- assert.cpp 28 Feb 2005 22:14:03 -0000 1.9 *************** *** 4,8 **** # include <cpput/thread.h> # include <cpput/translate.h> - # include <cpput/typehelper.h> --- 4,7 ---- |