Skip to content

Commit

Permalink
Disable Interprocess tests when /RTC is in effect.
Browse files Browse the repository at this point in the history
  • Loading branch information
pdimov committed Jan 17, 2025
1 parent 40cf552 commit 6c0b763
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
11 changes: 11 additions & 0 deletions test/cfoa/interprocess_concurrency_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 <boost/config.hpp>
#include <boost/config/pragma_message.hpp>

#if defined(__MSVC_RUNTIME_CHECKS)
BOOST_PRAGMA_MESSAGE(
"Test skipped because of /RTCc, which is incompatible with Boost.Interprocess");
int main() {}
#else

#include <boost/unordered/concurrent_flat_map.hpp>
#include <atomic>
#include <boost/asio.hpp>
Expand Down Expand Up @@ -115,3 +124,5 @@ int main(int argc, char** argv)
return child(std::atoi(argv[1]),argv[2]);
}
}

#endif
6 changes: 5 additions & 1 deletion test/unordered/mmap_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,16 @@
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

#include <boost/config.hpp>
#include <boost/config/pragma_message.hpp>

#if defined(BOOST_CLANG_VERSION) && BOOST_CLANG_VERSION < 30900
#include <boost/config/pragma_message.hpp>
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"

Expand Down

0 comments on commit 6c0b763

Please sign in to comment.