Boost logo

Boost-Build :

Subject: Re: [Boost-build] What should I do with the <exception-handling>off tests?
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2016-02-22 22:12:19


AMDG

On 02/22/2016 07:36 PM, Kuhl, Brian wrote:
> Here is my issue.
> When building VxWorks libraries for a particular target (platform ) we currently allow people to choose to build either:
> - Full Dinkum C++ support libraries with exceptions
> - Embedded Dinkum C++ support libraries without exception handling, (which also updates the include path with an embedded subset of STL headers)
>
> So I can't just flip a build switch like the test suite wants me to and link against an alternate library for a few tests.
>
> I also expect the Embedded C++ dialect will not work with most of boost.
> ( I'm not a fan of EC++, it's just something we support because one of our competitors does)
>
> Is this testing for completeness?
> Or is using boost without exceptions a common use case?
>
> Currently in boost 1.59 there 4 tests using this configuration 1 in each of config, core, exception and regex.
>

  I think it's safe just to ignore <exception-handling>off
in this case. After looking at these tests, they seem to
be checking that the library works correctly when exceptions
are disabled. If the compiler doesn't support compiling
without exceptions, then they have little value, but they
should still work. The only one of these tests that actually
depends on the behavior difference is Boost.Exception, and
this test explicitly sets BOOST_NO_EXCEPTIONS, which is
enough to make it work, even when the compiler actually does
allow exceptions.

In Christ,
Steven Watanabe


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