From 1af9381775f6a62ab7ad561160db325aee1d10b2 Mon Sep 17 00:00:00 2001 From: Emil Dotchevski Date: Mon, 1 Feb 2010 17:52:20 +0000 Subject: [PATCH] fixing bug in printing failure info in exception_ptr_test.cpp [SVN r59419] --- test/exception_ptr_test.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/exception_ptr_test.cpp b/test/exception_ptr_test.cpp index 994f2d4..1da2713 100644 --- a/test/exception_ptr_test.cpp +++ b/test/exception_ptr_test.cpp @@ -11,6 +11,7 @@ #include #include #include +#include class thread_handle; boost::shared_ptr create_thread( boost::function const & f ); @@ -102,7 +103,10 @@ main() 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; } }