Update of /cvsroot/cppunit/cppunit2/src/cpput
In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv11051/src/cpput
Modified Files:
registry.cpp
Log Message:
- Fixed bug in Registry::remove() when a suite had multiple child suites.
- Added Registry suite removal tests
Index: registry.cpp
===================================================================
RCS file: /cvsroot/cppunit/cppunit2/src/cpput/registry.cpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** registry.cpp 15 Aug 2007 11:20:57 -0000 1.6
--- registry.cpp 8 Jul 2008 20:42:00 -0000 1.7
***************
*** 76,82 ****
{
ParentChildRelationShips::iterator it = relations_.find( parentSuiteName );
! while ( it != relations_.end() && it->first == parentSuiteName )
{
! if ( it->second == childSuiteName )
{
relations_.erase( it );
--- 76,83 ----
{
ParentChildRelationShips::iterator it = relations_.find( parentSuiteName );
! for ( ; it != relations_.end() && it->first == parentSuiteName; ++it )
{
! const CppTL::ConstString ¤tChildName = it->second;
! if ( currentChildName == childSuiteName )
{
relations_.erase( it );
|