mirror of
https://github.com/catchorg/Catch2.git
synced 2025-11-13 09:59:32 +01:00
Remove captures
This commit is contained in:
@@ -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