|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r48770 - trunk/boost/test/impl
From: gennadiy.rozental_at_[hidden]
Date: 2008-09-14 03:12:24
Author: rogeeff
Date: 2008-09-14 03:12:24 EDT (Sun, 14 Sep 2008)
New Revision: 48770
URL: http://svn.boost.org/trac/boost/changeset/48770
Log:
properly cleanup framework
Text files modified:
trunk/boost/test/impl/framework.ipp | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
Modified: trunk/boost/test/impl/framework.ipp
==============================================================================
--- trunk/boost/test/impl/framework.ipp (original)
+++ trunk/boost/test/impl/framework.ipp 2008-09-14 03:12:24 EDT (Sun, 14 Sep 2008)
@@ -121,8 +121,10 @@
~framework_impl()
{
- BOOST_TEST_FOREACH( test_unit_store::value_type const&, tu, m_test_units ) {
- // these delete statements will erase map elements, but iterators should be fine
+ while( !m_test_units.empty() ) {
+ test_unit_store::value_type const& tu = *m_test_units.begin();
+
+ // the delete will erase this element from map
if( test_id_2_unit_type( tu.second->p_id ) == tut_suite )
delete (test_suite const*)tu.second;
else
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk