File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
tests/beman/inplace_vector Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -43,9 +43,13 @@ add_gtest(size_n_data)
4343add_gtest(erasure)
4444add_gtest(modifiers)
4545
46+ # only add noexception tests if NO_EXCEPTIONS option is set and compiler supports -fno-exceptions
4647if(
47- CMAKE_CXX_COMPILER_ID STREQUAL "Clang"
48- OR CMAKE_CXX_COMPILER_ID STREQUAL "GNU"
48+ BEMAN_INPLACE_VECTOR_NO_EXCEPTIONS
49+ AND (
50+ CMAKE_CXX_COMPILER_ID STREQUAL "Clang"
51+ OR CMAKE_CXX_COMPILER_ID STREQUAL "GNU"
52+ )
4953)
5054 add_gtest(noexceptions)
5155 target_compile_options(
Original file line number Diff line number Diff line change @@ -394,7 +394,9 @@ template <typename Param>
394394std::size_t IVBasicTest<Param>::InputIterator::num_deref;
395395
396396#if BEMAN_INPLACE_VECTOR_NO_EXCEPTIONS()
397- #define SAFE_EXPECT_THROW (x, y ) EXPECT_DEATH(x, " .*" )
397+ #define SAFE_EXPECT_THROW (x, y ) \
398+ do { \
399+ } while (0 )
398400#else
399401#define SAFE_EXPECT_THROW (x, y ) EXPECT_THROW(x, y)
400402#endif
You can’t perform that action at this time.
0 commit comments