mirror of
https://github.com/boostorg/system.git
synced 2025-07-30 12:37:13 +02:00
Merge branch 'develop' into feature/constexpr
This commit is contained in:
@ -8,6 +8,7 @@
|
|||||||
# See library home page at http://www.boost.org/libs/system
|
# See library home page at http://www.boost.org/libs/system
|
||||||
|
|
||||||
import testing ;
|
import testing ;
|
||||||
|
import os ;
|
||||||
|
|
||||||
project
|
project
|
||||||
: requirements
|
: requirements
|
||||||
@ -75,6 +76,16 @@ project
|
|||||||
return $(result) ;
|
return $(result) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if [ os.environ UBSAN ]
|
||||||
|
{
|
||||||
|
rule system-run ( sources + )
|
||||||
|
{
|
||||||
|
# The 03/11 tests are ODR violations, no point running them under -fsanitize=undefined
|
||||||
|
return [ system-run- $(sources) ] ;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
rule system-run ( sources + )
|
rule system-run ( sources + )
|
||||||
{
|
{
|
||||||
local result = [ system-run- $(sources) ] ;
|
local result = [ system-run- $(sources) ] ;
|
||||||
@ -89,6 +100,7 @@ project
|
|||||||
|
|
||||||
return $(result) ;
|
return $(result) ;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
test-suite "system"
|
test-suite "system"
|
||||||
: [ system-run error_code_test.cpp ]
|
: [ system-run error_code_test.cpp ]
|
||||||
|
@ -12,13 +12,10 @@
|
|||||||
# 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
|
||||||
@ -26,11 +23,6 @@ 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>
|
||||||
|
Reference in New Issue
Block a user