Testing concurrency
Testing threaded code, catching real races with sanitizers, and hunting flaky tests.
Testing threaded code
Write deterministic tests for concurrent code: launch threads with std::jthread, release them together with a latch to force overlap, synchronize with std::async and futures, and assert the aggregate that must hold no matter how the threads interleave.
Races and memory bugs
Read what the sanitizers report. Run the suite under AddressSanitizer, UndefinedBehaviorSanitizer, and ThreadSanitizer, and see each one catch a bug written to trip it: a dangling view, a signed overflow, and a data race.
Deterministic and stress testing
Kill flakiness at the source: inject the clock and the random engine so a test controls time and chance, then stress the suite with gtest_repeat and gtest_shuffle to flush out the rare failures that remain.