Boost logo

Boost Users :

Subject: Re: [Boost-users] Regarding use of Boost.Test in Iteration.
From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2010-06-02 13:33:44


Gaurav N Shah <gaurav.n.shah <at> jpmchase.com> writes:

> int main(int argc, char *argv[])
> {
>   while (1)
>   {
> boost::unit_test::unit_test_main(&init_test, argc, argv);
> ::Sleep(2*60*1000); //wait for 2 mins
>   }
> }

Unfortunately you can't use Boost.Test supplied main in this manner. It performs
initialization every time. You'll have to write your own. Look into
implementation of unit_test_main and mimic it for your purposes.

Gennadiy

P.S. Ping me on ST, we can work something out


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