Modify

Opened 7 years ago

Closed 7 years ago

Last modified 3 years ago

#4911 closed Feature Requests (fixed)

ENH: boost.test output the exception real type name.

Reported by: anonymous Owned by: Gennadiy Rozental
Milestone: Boost 1.59.0 Component: test
Version: Boost 1.45.0 Severity: Optimization
Keywords: Cc:

Description

boost\test\impl\execution_monitor.ipp int execution_monitor::execute( unit_test::callback0<int> const& F ) we loss the real type of the exception, why not output it like this: "std::bad_exception: %s: %s", typeid(ex).name(), ex.what()

try {

return catch_signals( F );

} catch( std::bad_exception const& ex )

{ detail::report_error( execution_exception::cpp_exception_error,

current_exception_cast<boost::exception const>(), "std::bad_exception: %s: %s",

typeid(ex).name(), ex.what() ); output typeid(ex).name(). }

catch( std::domain_error const& ex )

{ detail::report_error( execution_exception::cpp_exception_error,

current_exception_cast<boost::exception const>(),

"std::domain_error: %s", ex.what() ); current version 1.45, wo lost the type info.

}

.......

Attachments (0)

Change History (3)

comment:1 Changed 7 years ago by Vicente Botet <vicente.botet@…>

Component: Nonetest
Owner: set to Gennadiy Rozental

comment:2 Changed 7 years ago by Gennadiy Rozental

Resolution: fixed
Status: newclosed

(In [75004]) use typeid to report "real" exception type if possible. Fixes #4911

comment:3 Changed 3 years ago by Raffi Enficiaud

Milestone: To Be DeterminedBoost 1.59.0

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Gennadiy Rozental.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.