|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r48847 - in trunk/boost/test: . impl
From: gennadiy.rozental_at_[hidden]
Date: 2008-09-18 01:00:21
Author: rogeeff
Date: 2008-09-18 01:00:20 EDT (Thu, 18 Sep 2008)
New Revision: 48847
URL: http://svn.boost.org/trac/boost/changeset/48847
Log:
framework clear method introduced
Text files modified:
trunk/boost/test/framework.hpp | 1 +
trunk/boost/test/impl/framework.ipp | 12 +++++++++++-
2 files changed, 12 insertions(+), 1 deletions(-)
Modified: trunk/boost/test/framework.hpp
==============================================================================
--- trunk/boost/test/framework.hpp (original)
+++ trunk/boost/test/framework.hpp 2008-09-18 01:00:20 EDT (Thu, 18 Sep 2008)
@@ -55,6 +55,7 @@
BOOST_TEST_DECL void register_test_unit( test_case* tc );
BOOST_TEST_DECL void register_test_unit( test_suite* ts );
BOOST_TEST_DECL void deregister_test_unit( test_unit* tu );
+BOOST_TEST_DECL void clear();
BOOST_TEST_DECL void register_observer( test_observer& );
BOOST_TEST_DECL void deregister_observer( test_observer& );
Modified: trunk/boost/test/impl/framework.ipp
==============================================================================
--- trunk/boost/test/impl/framework.ipp (original)
+++ trunk/boost/test/impl/framework.ipp 2008-09-18 01:00:20 EDT (Thu, 18 Sep 2008)
@@ -119,7 +119,9 @@
, m_test_in_progress( false )
{}
- ~framework_impl()
+ ~framework_impl() { clear(); }
+
+ void clear()
{
while( !m_test_units.empty() ) {
test_unit_store::value_type const& tu = *m_test_units.begin();
@@ -327,6 +329,14 @@
//____________________________________________________________________________//
void
+clear()
+{
+ s_frk_impl().clear();
+}
+
+//____________________________________________________________________________//
+
+void
register_observer( test_observer& to )
{
s_frk_impl().m_observers.insert( &to );
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