Boost logo

Boost Users :

Subject: [Boost-users] [test] long exception message and last checkpoint data
From: Mathieu Champlon (mathieu.champlon_at_[hidden])
Date: 2012-06-19 06:53:16


Hi,

I have a test case throwing a custom exception with a quite long error
description.
Because Boost.Test truncates it when translating the exception to a
boost::execution_exception internally, only (about) 512 characters are
being displayed.

I suppose I could install a custom exception translator to perform the
logging, then rethrow a boost::execution_aborted.
However I don't see any way to access the last checkpoint data which are
encapsulated and can only be logged by processing a
boost::execution_exception within
boost::unit_test::unit_test_log_t::exception_caught

Is there anything obvious I have missed which could help me work around
this issue ?
Otherwise would this be a valuable feature request for the UTF ?

Thank you,
Mathieu


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net