Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2008-04-13 12:03:45


Jurko Gospodnetiæ:

> Can anyone provide hints on where and how to add a test for this? The
> code should be simple - just the one given in the previous mail:
>
> #include "boost/archive/text_iarchive.hpp"
> #include "boost/pool/pool_alloc.hpp"
> int main() {}

I'd #include the conflicting "boost/detail/lightweight_mutex.hpp" directly.

To add a test case, the usual procedure is to add a foo_my_test.cpp file in
the libs/foo/test directory and a corresponding "run foo_my_test" line in
the Jamfile. Unfortunately some libraries - pool among them - do not have
their tests factored out in this way and are instead inlined into
status/Jamfile.v2. It currently contains

    run libs/pool/test/test_pool_alloc.cpp test_exec_monitor ;

without even being wrapped in a test-suite. You'll probably need to add a
second similar line (test_exec_monitor is not necessary for this simple
test.)


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk