Boost logo

Boost :

From: (noreply_at_[hidden])
Date: 2003-10-14 12:36:45

Bugs item #823589, was opened at 2003-10-14 13:36
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:

Category: test
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Miro Jurisic (meeroh)
Assigned to: Beman Dawes (beman_dawes)
Summary: BOOST_AUTO_TEST doesn't work across multiple units

Initial Comment:
BOOST_AUTO_TEST doesn't work across multiple compilation
units. The problem is that the init_unit_test_suite is defined in
the .h file and as a result, only one compilation unit gets its
test suite registered; all the others get punted by the linker.

I solved the problem by moving init_unit_test_suite into a
source file of its own, so that it's shared across all compilation
units. In doing so, I had to clean up the auto-test registration
process, to avoid dependencies on static initialization order.

I am attaching my modified version of auto_unit_test.hpp,
and my new auto_unit_test.cpp.


You can respond by visiting:

This email is sponsored by: Giveback Program. hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here:
Boost-bugs mailing list

Boost list run by bdawes at, gregod at, cpdaniel at, john at