Boost logo

Boost Users :

Subject: Re: [Boost-users] [Boost.Test] [1.38] Automated test suie registration with muti-file-test-modules
From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2009-07-04 02:47:38


Greg Christopher <gchristopher <at> vmware.com> writes:

> > This is covered in docs I believe. BOOST_TEST_MODULE has similar effect
> > as
> > BOOST_TEST_MAIN, but also define the name of the master test suite
>
> Since I don't really need to define the name of the master test suite,
> I will not use BOOST_TEST_MODULE.
>
> As it turns out, that still does not yield a working example. I then
> have no init_unit_test_suite()

Please post an example and how you build it.

> defined. By messing around, I find that defining BOOST_AUTO_TEST_MAIN
> fixes the problem. Looks like I need to do that in some module?

No. BOOST_AUTO_TEST_MAIN is deprecated and should not be required.

> I thought that the main program would be pulled out of the library if
> I didn't provide one. While that may be true, init_unit_test_suite
> is not defined.

It may not have to be defined it you are using shared library variant of UTF.

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