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; } }