
Tim Day
BOOST_FIXTURE_TEST_CASE maybe comes closest. (However, whereas a CppUnit protector can return a bool to indicate pass/fail, it's less clear to me how a fixture destructor should indicate failure).
What and where you want to indicate? How framework has to respond to this indication?
I was just concerned that if I went down the route of trying to indicate test(-suite) failure from BOOST_FIXTURE_TEST_CASE's destructor, pretty much the only option would seem to be be to throw (not a nice thing to do in a destructor)
Yes. I think that you can do this. If you test stack unrolling using uncaught_exception().
closely). But failing a test within a test_observer::test_finish() call seems like it ought to be a cleaner place to do it.
It was not designed for this purpose. Maybe we can reconsider it. Gennadiy