Boost logo

Boost Users :

Subject: Re: [Boost-users] [test framework] one testsuite over multiple translation units
From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2008-12-19 16:19:03


Georg Sauthoff <g_sauthoff <at> web.de> writes:

> > Do you have any specific problems?
>
> Yes, from the documentation I don't see how to do multiple translation
> units/testsuites and linking against utf library.
>
> I basically tried this:
> //a.cc
> #define BOOST_TEST_DYN_LINK
> #define BOOST_TEST_MODULE a

> Thus, the question is: How to do it right?

You need to define BOOST_TEST_MODULE only in one translation unit in test
module. I believe it's covered in documentation.

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