This commit is contained in:
Jeremy Rifkin 2025-01-18 10:30:10 -06:00
parent 83cbfb953a
commit 6829ced265
No known key found for this signature in database
GPG Key ID: 19AA8270105E8EB4
2 changed files with 16 additions and 6 deletions

View File

@ -68,6 +68,22 @@ jobs:
cmake_configurations: -DMEMORYCHECK_COMMAND=`which valgrind` -DMEMORYCHECK_COMMAND_OPTIONS="-q --track-origins=yes --leak-check=full --num-callers=50 --show-leak-kinds=definite --error-exitcode=1"
other_ctest_args: -T memcheck -LE uses-python
# Thread sanitizer test gcc-7
- cxx: g++-7
build_description: Thread sanitizer tests
build_type: Debug
std: 14
other_pkgs: g++-7
cmake_configurations: -DCATCH_BUILD_EXTRA_TESTS=ON -DCMAKE_CXX_FLAGS="-fsanitize=thread"
# Thread sanitizer test clang-10
- cxx: clang++-10
build_description: Thread sanitizer tests
build_type: Debug
std: 14
other_pkgs: clang-10
cmake_configurations: -DCATCH_BUILD_EXTRA_TESTS=ON -DCMAKE_CXX_FLAGS="-fsanitize=thread"
steps:
- uses: actions/checkout@v4

View File

@ -491,12 +491,6 @@ set_tests_properties(
PASS_REGULAR_EXPRESSION "passed"
FAIL_REGULAR_EXPRESSION "ThreadSanitizer"
)
if (NOT WIN32)
target_compile_options( Reporters::Multithreading
PUBLIC
$<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:GNU>,$<CXX_COMPILER_ID:AppleClang>>:-fsanitize=thread>
)
endif()
add_executable(AssertionStartingEventGoesBeforeAssertionIsEvaluated
X20-AssertionStartingEventGoesBeforeAssertionIsEvaluated.cpp