Boost logo

Boost Users :

Subject: Re: [Boost-users] [unit_test_framework] checkpoints for BOOST_CHECK*?
From: rozelak_at_[hidden]
Date: 2009-08-28 09:40:46


> rozelak_at_[hidden] wrote:
> > Is there a way how to achieve what I am looking for?
> >
> >
> Use BOOST_TEST_MESSAGE and set log level to message
>
> Gennadiy
>

Yes, I have read about this option and it works - thank you. I consider
it as not perfect, but working solution.

However, I want to ask, if the idea of checkpoints could be generalised
and used during check failure printing as well (as has been suggested
in the example in my first post).
I don't know boost source in depth, but it seems that BOOST_TEST_CHECKPOINT
just calls boost::unit_test::unit_test_log.set_checkpoint(...), which
stores the checkpoint info in unit_test_log (which is supposed to be
singleton).
Would, therefore, be possible to print the checkpoint stored also when
test failure is printed? May I be helpfull somehow to do this?

Or is it against the idea of the checkpoints?

Thank you very much,
Dan


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