|
Boost Users : |
From: Pierre-Jules Tremblay (iamtrep_at_[hidden])
Date: 2006-08-23 08:50:06
Well.. in general, not that often, I suppose.
In our augmented version of your test framework, I've implemented
fairly sophisticated logic to catch memory leaks on a per-test-case
basis. In the results accounting, I need to know whether a test
failed because of a memory leak or because it failed a predicate
check.
Come to think of it, perhaps this belongs more as an FAQ item for the
documentation rather than a tool proper.
pj
On 8/17/06, Gennadiy Rozental <gennadiy.rozental_at_[hidden]> wrote:
>
> "Pierre-Jules Tremblay" <iamtrep_at_[hidden]> wrote in message
> news:4590bfef0608171408o5637d299s452bf55c19fbd6dd_at_mail.gmail.com...
> >I am such an impatient lad, I answered my own question:
> >
> > #include <boost/test/results_collector.hpp>
> >
> > if ( boost::unit_test::results_collector.results(
> > boost::unit_test::framework::current_test_case().p_id ).passed() )
> > {
> > // do something useful.
> > }
> >
> > Is there a better way?
>
> Looks right. I would define a alias for boost::unit_test.
>
> > How about providing a tool wrapper for this feature?
>
> Why do you need this? How frequent do you think this would be requested?
>
> Gennadiy
>
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
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