Disable RTTI in Jamfile in a clever way

Disable RTTI in Jamfile and assert that no-rtti tests are really run
with RTTI disabled
This commit is contained in:
apolukhin committed 2013-10-10 18:30:10 +04:00
1 parent 7a958aa5e5
commit 27170475bd
3 files changed
+10 -18

No files matched your search

+2 -18
View File
@@ -18,24 +18,8 @@ test-suite type_index
[ run type_index_test.cpp ]
[ run template_index_test.cpp ]
[ run testing_both.cpp ]
[ run testing_both_no_rtti.cpp : : : <define>BOOST_NO_RTTI
<toolset>gcc-4.3:<cxxflags>-fno-rtti
<toolset>gcc-4.4:<cxxflags>-fno-rtti
<toolset>gcc-4.5:<cxxflags>-fno-rtti
<toolset>gcc-4.6:<cxxflags>-fno-rtti
<toolset>gcc-4.7:<cxxflags>-fno-rtti
<toolset>gcc-4.8:<cxxflags>-fno-rtti
<toolset>clang:<cxxflags>-fno-rtti
]
[ run testing_both_no_rtti.cpp : : : <rtti>off ]
[ run testing_minimal.cpp ]
[ run testing_minimal_no_rtti.cpp : : : <define>BOOST_NO_RTTI
<toolset>gcc-4.3:<cxxflags>-fno-rtti
<toolset>gcc-4.4:<cxxflags>-fno-rtti
<toolset>gcc-4.5:<cxxflags>-fno-rtti
<toolset>gcc-4.6:<cxxflags>-fno-rtti
<toolset>gcc-4.7:<cxxflags>-fno-rtti
<toolset>gcc-4.8:<cxxflags>-fno-rtti
<toolset>clang:<cxxflags>-fno-rtti
]
[ run testing_minimal_no_rtti.cpp : : : <rtti>off ]
;
@@ -9,6 +9,10 @@
#include <boost/test/unit_test.hpp>
#include <boost/type_index.hpp>
#ifndef BOOST_NO_RTTI
#error "This test must be run with disabled RTTI"
#endif
namespace my_namespace1 {
class my_class{};
}
@@ -9,6 +9,10 @@
#include <boost/test/unit_test.hpp>
#include <boost/type_index/type_index_minimal.hpp>
#ifndef BOOST_NO_RTTI
#error "This test must be run with disabled RTTI"
#endif
namespace my_namespace1 {
class my_class{};
}