From 6c0b763176aff7324b4cf05f8f111e283a804d0e Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Fri, 17 Jan 2025 18:40:03 +0200 Subject: [PATCH] Disable Interprocess tests when /RTC is in effect. --- test/cfoa/interprocess_concurrency_tests.cpp | 11 +++++++++++ test/unordered/mmap_tests.cpp | 6 +++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/test/cfoa/interprocess_concurrency_tests.cpp b/test/cfoa/interprocess_concurrency_tests.cpp index f69a48b6..6f83c6f9 100644 --- a/test/cfoa/interprocess_concurrency_tests.cpp +++ b/test/cfoa/interprocess_concurrency_tests.cpp @@ -2,6 +2,15 @@ // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +#include +#include + +#if defined(__MSVC_RUNTIME_CHECKS) +BOOST_PRAGMA_MESSAGE( + "Test skipped because of /RTCc, which is incompatible with Boost.Interprocess"); +int main() {} +#else + #include #include #include @@ -115,3 +124,5 @@ int main(int argc, char** argv) return child(std::atoi(argv[1]),argv[2]); } } + +#endif diff --git a/test/unordered/mmap_tests.cpp b/test/unordered/mmap_tests.cpp index 634eecfd..90396b48 100644 --- a/test/unordered/mmap_tests.cpp +++ b/test/unordered/mmap_tests.cpp @@ -4,12 +4,16 @@ // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include +#include #if defined(BOOST_CLANG_VERSION) && BOOST_CLANG_VERSION < 30900 -#include BOOST_PRAGMA_MESSAGE( "This version of clang is incompatible with Boost.Process"); int main() {} +#elif defined(__MSVC_RUNTIME_CHECKS) +BOOST_PRAGMA_MESSAGE( + "Test skipped because of /RTCc, which is incompatible with Boost.Interprocess"); +int main() {} #else #include "../helpers/test.hpp"