mirror of
https://github.com/catchorg/Catch2.git
synced 2025-11-13 09:59:32 +01:00
Serial run, CAPTURE back
This commit is contained in:
@@ -565,4 +565,5 @@ 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: 8001 | 4000 passed | 4001 failed"
|
||||||
|
RUN_SERIAL ON
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -27,9 +27,9 @@ TEST_CASE( "Failed REQUIRE in the main thread is fine" ) {
|
|||||||
std::vector<std::thread> threads;
|
std::vector<std::thread> threads;
|
||||||
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 < 1'000; ++i) {
|
||||||
// CAPTURE(i);
|
CAPTURE(i);
|
||||||
CHECK( false );
|
CHECK( false );
|
||||||
CHECK( true );
|
CHECK( true );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user