Boost logo

Boost Users :

Subject: Re: [Boost-users] How to run boost.Test iteratively?
From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2010-10-20 03:15:53


Gaurav N Shah <gaurav.n.shah <at> jpmchase.com> writes:
> int
> main(int argc, char* argv[])
>
> {
>
>       boost::unit_test::unit_test_main(&init_test,
> argc, argv);    //1st attempt
>
>       sleep(1
> mins)
>
>       boost::unit_test::unit_test_main(&init_test,
> argc, argv);   //2nd attempt
>
> }
> On
> first attempt test case runs fine. However, on second attempt I get below
> error:

This error can't be avoided in current design. Just don't do this. What are you
trying to achieve?

If you are after rerunning tests within the same session with the same
executable you need to implement different main.

Gennadiy


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