Boost logo

Boost-Commit :

From: john.groups_at_[hidden]
Date: 2007-11-05 08:58:29


Author: jtorjo
Date: 2007-11-05 08:58:28 EST (Mon, 05 Nov 2007)
New Revision: 40786
URL: http://svn.boost.org/trac/boost/changeset/40786

Log:
[logging]
extra info when assertion fails
Text files modified:
   sandbox/logging/lib/logging/tests/test_tss/test_tss_on_end_delete.cpp | 5 ++++-
   1 files changed, 4 insertions(+), 1 deletions(-)

Modified: sandbox/logging/lib/logging/tests/test_tss/test_tss_on_end_delete.cpp
==============================================================================
--- sandbox/logging/lib/logging/tests/test_tss/test_tss_on_end_delete.cpp (original)
+++ sandbox/logging/lib/logging/tests/test_tss/test_tss_on_end_delete.cpp 2007-11-05 08:58:28 EST (Mon, 05 Nov 2007)
@@ -39,7 +39,10 @@
 
 namespace boost { namespace logging { namespace detail {
 void on_end_delete_objects() {
- BOOST_ASSERT( g_object_count->count() == 0);
+ if( g_object_count->count() != 0) {
+ std::cout << "end delete objects, remaining = " << g_object_count->count() << std::endl;
+ BOOST_ASSERT(false);
+ }
 }
 
 }}}


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