Boost logo

Boost-Build :

Subject: [Boost-build] Preventing unit test builds
From: Steven Solie (ssolie_at_[hidden])
Date: 2009-02-18 10:44:24


I'm building the unit tests on the AmigaOS platform which does not
support threading. Those unit tests which require threading are
still building and failing for some reason. What I expected was that
any unit tests which rely on threading would not be built at all.
Instead, they fail to build and show up in the regression test
report.

For example, the asio library has the following in Jamfile.v2
project
  : requirements
    <library>/boost/date_time//boost_date_time
    <library>/boost/system//boost_system
    <library>/boost/thread//boost_thread
    <define>BOOST_ALL_NO_LIB=1
    <threading>multi
[snip]

I have these options I pass to bjam from the command line:
bjam --without-thread threading=single

The only workaround to avoid building and of course failing
is to do something like this:
project
  : requirements
    <os>AMIGA:<build>no
[snip]

Why are the asio unit tests still building and running when the
threading requirements are not being met?

P.S. Boost 1.38.0 package

--Steven


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk