Fewer assertions so that msvc debug build doesn't timeout

This commit is contained in:
Martin Hořeňovský
2025-11-09 15:18:09 +01:00
parent f6fd079aa3
commit cd7e43489e
2 changed files with 2 additions and 2 deletions

View File

@@ -564,6 +564,6 @@ add_test(NAME ThreadSafetyTests
) )
set_tests_properties(ThreadSafetyTests set_tests_properties(ThreadSafetyTests
PROPERTIES PROPERTIES
PASS_REGULAR_EXPRESSION "assertions: 8001 | 4000 passed | 4001 failed" PASS_REGULAR_EXPRESSION "assertions: 801 | 400 passed | 401 failed"
RUN_SERIAL ON RUN_SERIAL ON
) )

View File

@@ -28,7 +28,7 @@ TEST_CASE( "Failed REQUIRE in the main thread is fine" ) {
for ( size_t t = 0; t < 4; ++t) { for ( size_t t = 0; t < 4; ++t) {
threads.emplace_back( [t]() { threads.emplace_back( [t]() {
CAPTURE(t); CAPTURE(t);
for (size_t i = 0; i < 1'000; ++i) { for (size_t i = 0; i < 100; ++i) {
CAPTURE(i); CAPTURE(i);
CHECK( false ); CHECK( false );
CHECK( true ); CHECK( true );