From cdef91bff7a732755c83d39559157b0895920df8 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Wed, 18 Sep 2024 17:53:14 +0300 Subject: [PATCH] Disable _ccs tests when _M_IX86 isn't defined (MSVC 32 bit) --- test/custom_ccs/member_ccs.cpp | 8 ++++++++ test/custom_ccs/member_ccs_exact.cpp | 8 ++++++++ test/custom_ccs/nonmember_ccs.cpp | 8 ++++++++ test/custom_ccs/nonmember_ccs_exact.cpp | 10 ++++++++-- 4 files changed, 32 insertions(+), 2 deletions(-) diff --git a/test/custom_ccs/member_ccs.cpp b/test/custom_ccs/member_ccs.cpp index 11f9392..cae2eb9 100644 --- a/test/custom_ccs/member_ccs.cpp +++ b/test/custom_ccs/member_ccs.cpp @@ -6,6 +6,13 @@ //------------------------------------------------------------------------------ +#if !defined(_M_IX86) + +#include +BOOST_PRAGMA_MESSAGE("Test skipped because _M_IX86 is not defined") + +#else + #define BOOST_FT_AUTODETECT_CALLING_CONVENTIONS #include @@ -48,3 +55,4 @@ BOOST_MPL_ASSERT(( > )); +#endif diff --git a/test/custom_ccs/member_ccs_exact.cpp b/test/custom_ccs/member_ccs_exact.cpp index 413b133..5ae4b84 100644 --- a/test/custom_ccs/member_ccs_exact.cpp +++ b/test/custom_ccs/member_ccs_exact.cpp @@ -6,6 +6,13 @@ //------------------------------------------------------------------------------ +#if !defined(_M_IX86) + +#include +BOOST_PRAGMA_MESSAGE("Test skipped because _M_IX86 is not defined") + +#else + #define BOOST_FT_AUTODETECT_CALLING_CONVENTIONS #include @@ -69,3 +76,4 @@ BOOST_MPL_ASSERT_NOT(( ft::is_callable_builtin< ft::member_function_pointer, cc>::type, dc > )); +#endif diff --git a/test/custom_ccs/nonmember_ccs.cpp b/test/custom_ccs/nonmember_ccs.cpp index 81681ff..4f35c9b 100644 --- a/test/custom_ccs/nonmember_ccs.cpp +++ b/test/custom_ccs/nonmember_ccs.cpp @@ -6,6 +6,13 @@ //------------------------------------------------------------------------------ +#if !defined(_M_IX86) + +#include +BOOST_PRAGMA_MESSAGE("Test skipped because _M_IX86 is not defined") + +#else + #define BOOST_FT_AUTODETECT_CALLING_CONVENTIONS #include @@ -43,3 +50,4 @@ BOOST_MPL_ASSERT(( > )); +#endif diff --git a/test/custom_ccs/nonmember_ccs_exact.cpp b/test/custom_ccs/nonmember_ccs_exact.cpp index d6db300..1116783 100644 --- a/test/custom_ccs/nonmember_ccs_exact.cpp +++ b/test/custom_ccs/nonmember_ccs_exact.cpp @@ -6,6 +6,13 @@ //------------------------------------------------------------------------------ +#if !defined(_M_IX86) + +#include +BOOST_PRAGMA_MESSAGE("Test skipped because _M_IX86 is not defined") + +#else + #define BOOST_FT_AUTODETECT_CALLING_CONVENTIONS #include @@ -58,5 +65,4 @@ BOOST_MPL_ASSERT_NOT(( ft::is_callable_builtin< ft::function_pointer >::type, cc > )); - - +#endif