Boost logo

Boost Testing :

Subject: Re: [Boost-testing] [EXTERNAL] Boost Config no rtti test broken on Darwin
From: Belcourt, Kenneth (kbelco_at_[hidden])
Date: 2014-06-12 18:56:52


On Jun 12, 2014, at 4:14 PM, "Belcourt, Kenneth" <kbelco_at_[hidden]> wrote:

> It seems a recent change broke this test:
>
> [ run config_test.cpp
> : #args
> : #input-files
> : #requirements
> <rtti>off
> <target-os>linux:<linkflags>-lpthread
> <target-os>linux:<linkflags>-lrt
> <toolset>gcc:<linkflags>$(OTHERFLAGS)
> : config_test_no_rtti
> ]
>
> on Darwin 10.6.8 with gcc-4.2.1. Here's the test output:
>
> http://www.boost.org/development/tests/develop/developer/output/Sandia-darwin-4-2-1-boost-bin-v2-libs-config-test-config_test_no_rtti-test-darwin-4-2-1-debug-rtti-off.html

Any objection with this patch?

diff --git a/test/Jamfile.v2 b/test/Jamfile.v2
index d5d768c..62a5726 100644
--- a/test/Jamfile.v2
+++ b/test/Jamfile.v2
@@ -54,6 +54,7 @@ test-suite config
           : #input-files
           : #requirements
           <rtti>off
+ <toolset>darwin-4.2.1:<define>BOOST_NO_RTTI
           <target-os>linux:<linkflags>-lpthread
           <target-os>linux:<linkflags>-lrt
           <toolset>gcc:<linkflags>$(OTHERFLAGS)

diff --git a/test/boost_no_typeid.ipp b/test/boost_no_typeid.ipp
index 72dd4d3..f3403e5 100644
--- a/test/boost_no_typeid.ipp
+++ b/test/boost_no_typeid.ipp
@@ -16,7 +16,9 @@ namespace boost_no_typeid
 
 int test()
 {
+#ifndef BOOST_NO_RTTI
    (void)typeid(int);
+#endif
    return 0;
 }
 


Boost-testing list run by mbergal at meta-comm.com