Merge branch 'develop' into feature/constexpr

This commit is contained in:
Peter Dimov
2018-01-22 07:19:19 +02:00
3 changed files with 16 additions and 8 deletions

View File

@ -109,7 +109,7 @@ matrix:
- os: linux - os: linux
compiler: g++-7 compiler: g++-7
env: UBSAN=1 TOOLSET=gcc COMPILER=g++-7 CXXSTD=03,11,14,17 env: UBSAN=1 TOOLSET=gcc COMPILER=g++-7 CXXSTD=03,11,14,17 UBSAN_OPTIONS=print_stacktrace=1
addons: addons:
apt: apt:
packages: packages:
@ -221,7 +221,7 @@ matrix:
- os: linux - os: linux
compiler: clang++-5.0 compiler: clang++-5.0
env: UBSAN=1 TOOLSET=clang COMPILER=clang++-5.0 CXXSTD=03,11,14,1z env: UBSAN=1 TOOLSET=clang COMPILER=clang++-5.0 CXXSTD=03,11,14,1z UBSAN_OPTIONS=print_stacktrace=1
addons: addons:
apt: apt:
packages: packages:
@ -240,7 +240,7 @@ matrix:
- os: linux - os: linux
compiler: clang++-libc++ compiler: clang++-libc++
env: UBSAN=1 TOOLSET=clang COMPILER=clang++-libc++ CXXSTD=03,11,14,1z env: UBSAN=1 TOOLSET=clang COMPILER=clang++-libc++ CXXSTD=03,11,14,1z UBSAN_OPTIONS=print_stacktrace=1
addons: addons:
apt: apt:
packages: packages:
@ -266,7 +266,7 @@ install:
script: script:
- |- - |-
echo "using $TOOLSET : : $COMPILER ;" > ~/user-config.jam echo "using $TOOLSET : : $COMPILER ;" > ~/user-config.jam
- ./b2 -j3 libs/system/test toolset=$TOOLSET cxxstd=$CXXSTD variant=debug,release ${UBSAN:+cxxflags=-fsanitize=undefined} ${UBSAN:+cxxflags=-fno-sanitize-recover=undefined} ${UBSAN:+linkflags=-fsanitize=undefined} ${UBSAN:+define=UBSAN=1} - ./b2 -j3 libs/system/test toolset=$TOOLSET cxxstd=$CXXSTD variant=debug,release ${UBSAN:+cxxflags=-fsanitize=undefined cxxflags=-fno-sanitize-recover=undefined linkflags=-fsanitize=undefined define=UBSAN=1 debug-symbols=on}
notifications: notifications:
email: email:

View File

@ -10,19 +10,19 @@
// This test verifiies that the error_category vtable does not suffer from // This test verifiies that the error_category vtable does not suffer from
// order-of-initialization problems. // order-of-initialization problems.
#include <boost/detail/lightweight_test.hpp>
#include <boost/system/error_code.hpp> #include <boost/system/error_code.hpp>
#include <boost/core/lightweight_test.hpp>
struct foo struct foo
{ {
foo() foo()
{ {
boost::system::error_code ec; boost::system::error_code ec;
ec == boost::system::errc::permission_denied; BOOST_TEST_NE( ec, boost::system::errc::permission_denied );
} }
} f; } f;
int main( int, char ** ) int main()
{ {
return ::boost::report_errors(); return boost::report_errors();
} }

View File

@ -12,10 +12,13 @@
# define _CRT_SECURE_NO_WARNINGS # define _CRT_SECURE_NO_WARNINGS
#include <boost/config.hpp> #include <boost/config.hpp>
#include <boost/config/pragma_message.hpp>
#include <iostream> #include <iostream>
#if defined(BOOST_NO_CXX11_HDR_SYSTEM_ERROR) #if defined(BOOST_NO_CXX11_HDR_SYSTEM_ERROR)
BOOST_PRAGMA_MESSAGE("Skipping test, BOOST_NO_CXX11_HDR_SYSTEM_ERROR is defined")
int main() int main()
{ {
std::cout std::cout
@ -23,6 +26,11 @@ int main()
" support header <system_error> so interoperation will not be tested.\n"; " support header <system_error> so interoperation will not be tested.\n";
} }
#elif defined(UBSAN)
BOOST_PRAGMA_MESSAGE("Skipping test, UBSAN is defined")
int main() {}
#else #else
#include <boost/system/error_code.hpp> #include <boost/system/error_code.hpp>