Boost logo

Boost :

From: Stefan Slapeta (stefan_at_[hidden])
Date: 2005-02-08 07:32:52


Hi all,

there are a few cases where I didn't touch the code when replacing
BOOST_TEST. One of them is the subgraph test, as there occurs a slightly
different problem:

It seems to me that this code worked so far:

     // ...cpp file
     #include <boost/test/minimal.hpp>

     // ...some header file
     #include <boost/test/test_tools.hpp>

     BOOST_TEST(...);

For the code above, the initial declarations of test/minimal.hpp have
been used.
When you do the same now (after replacing BOOST_TEST), the compiler
complains about macro redefinition _and_ you get unresolved externals at
linking time.

C:\views_cvs\boost\boost\test\test_tools.hpp(81) : warning C4005:
'BOOST_CHECK' : macro redefinition
         C:\views_cvs\boost\boost\test\minimal.hpp(21) : see previous
definition of 'BOOST_CHECK'
C:\views_cvs\boost\boost\test\test_tools.hpp(82) : warning C4005:
'BOOST_REQUIRE' : macro redefinition
         C:\views_cvs\boost\boost\test\minimal.hpp(26) : see previous
definition of 'BOOST_REQUIRE'
C:\views_cvs\boost\boost\test\test_tools.hpp(92) : warning C4005:
'BOOST_ERROR' : macro redefinition
         C:\views_cvs\boost\boost\test\minimal.hpp(29) : see previous
definition of 'BOOST_ERROR'
C:\views_cvs\boost\boost\test\test_tools.hpp(93) : warning C4005:
'BOOST_FAIL' : macro redefinition
         C:\views_cvs\boost\boost\test\minimal.hpp(31) : see previous
definition of 'BOOST_FAIL'

Is it intended that these macros are defined differently for the minimal
testing facility? If yes, another testing strategy has to be chosen for
this case.
Nevertheless, I've replaced the occurances of BOOST_TEST now.

Stefan


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