Boost logo

Boost Users :

From: Pierre-Jules Tremblay (iamtrep_at_[hidden])
Date: 2006-03-29 09:28:47


I would like to use the BOOST_AUTO_TEST_CASE() facility in a static
library. Obviously this library does not have a main() so it needs to
be linked with a test executable which may run test cases found in one
or more of those static libraries.

Unfortunately, the tests do not make it past the linker. The
executable links fine but runs none of the tests defined in the
libraries. Could it be that BOOST_AUTO_TEST_CASE() works via some
global which gets stripped when the static lib is created?

Do you have a suggestion for a workaround? The idea is to keep some
of the lowest-level unit test code in the same translation unit as the
class implementation.

Thanks,

pj


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