#5256 closed Bugs (wontfix)
UTF doesn't call registered exception handler
Reported by: | Owned by: | Gennadiy Rozental | |
---|---|---|---|
Milestone: | To Be Determined | Component: | test |
Version: | Boost 1.45.0 | Severity: | Problem |
Keywords: | Cc: |
Description
BOOST_CHECK_NO_THROW assert statement ignores handlers registered via
boost::unit_test::unit_test_monitor::unit_test_monitor. register_exception_translator<exeption_type>( handler_instance );
Change History (2)
comment:1 by , 11 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
comment:2 by , 11 years ago
Yes, I can add separate try/catch block to ignore exceptions, but why I can't reuse logic of error reporting implemented in registered exception handler?
It doesn't matter how BOOST_CHECK_NO_THROW is implemented. Why I must to comment this statement only for one purpose: to see in log what's happened. And it's incorrect to replace this statement with try/catch because it already communicates test's intension correctly.
Note:
See TracTickets
for help on using tickets.
And it can't. register_exception_translator interface is intended to tweak a report about unknown exception being thrown from test case. BOOST_CHECK_NO_THROW puts expression under test into a simple try catch block. You can add you own try/catch if you want to to ignore some exceptions.