mirror of
https://github.com/boostorg/system.git
synced 2025-07-31 21:14:26 +02:00
Disable std_mismatch_test when UBSAN is defined
This commit is contained in:
@@ -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>
|
||||||
|
Reference in New Issue
Block a user