Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r59419 - trunk/libs/exception/test
From: emil_at_[hidden]
Date: 2010-02-01 12:52:20


Author: emildotchevski
Date: 2010-02-01 12:52:20 EST (Mon, 01 Feb 2010)
New Revision: 59419
URL: http://svn.boost.org/trac/boost/changeset/59419

Log:
fixing bug in printing failure info in exception_ptr_test.cpp
Text files modified:
   trunk/libs/exception/test/exception_ptr_test.cpp | 6 +++++-
   1 files changed, 5 insertions(+), 1 deletions(-)

Modified: trunk/libs/exception/test/exception_ptr_test.cpp
==============================================================================
--- trunk/libs/exception/test/exception_ptr_test.cpp (original)
+++ trunk/libs/exception/test/exception_ptr_test.cpp 2010-02-01 12:52:20 EST (Mon, 01 Feb 2010)
@@ -11,6 +11,7 @@
 #include <boost/bind.hpp>
 #include <boost/thread.hpp>
 #include <boost/detail/lightweight_test.hpp>
+#include <iostream>
 
 class thread_handle;
 boost::shared_ptr<thread_handle> create_thread( boost::function<void()> const & f );
@@ -102,7 +103,10 @@
     catch(
     ... )
         {
- BOOST_ERROR(boost::current_exception_diagnostic_information().c_str());
+ std::cerr <<
+ "Caught unexpected exception.\n"
+ "Output from current_exception_diagnostic_information:\n" <<
+ boost::current_exception_diagnostic_information() << std::endl;
         return 42;
         }
     }


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