mirror of
https://github.com/catchorg/Catch2.git
synced 2025-11-13 09:59:32 +01:00
Add tests for assertion thread safety
This commit is contained in:
@@ -553,3 +553,16 @@ set_tests_properties(AmalgamatedFileTest
|
||||
PROPERTIES
|
||||
PASS_REGULAR_EXPRESSION "All tests passed \\(14 assertions in 3 test cases\\)"
|
||||
)
|
||||
|
||||
add_executable(ThreadSafetyTests
|
||||
${TESTS_DIR}/X94-ThreadSafetyTests.cpp
|
||||
)
|
||||
target_link_libraries(ThreadSafetyTests Catch2_buildall_interface)
|
||||
target_compile_definitions(ThreadSafetyTests PUBLIC CATCH_CONFIG_EXPERIMENTAL_THREAD_SAFE_ASSERTIONS)
|
||||
add_test(NAME ThreadSafetyTests
|
||||
COMMAND ThreadSafetyTests -r compact
|
||||
)
|
||||
set_tests_properties(ThreadSafetyTests
|
||||
PROPERTIES
|
||||
PASS_REGULAR_EXPRESSION "assertions: 8001 | 4000 passed | 4001 failed"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user