Chromium Code Reviews
DescriptionFixed flaky SharedExclusiveLock tests.
These tests were checking the behavior of thread synchronization
primitives using nothing but carefully timed sleeps. This was very
unreliable and prone to flakes.
This CL replaces the sleeps with waiting on synchronization events.
There is still the need to wait for timeouts when testing for negative
outcomes, but it's greatly reduced. I've run these tests for thousands
of iterations on MSan without a single failure.
BUG=webrtc:5824
R=pthatcher@webrtc.org
Committed: https://chromium.googlesource.com/external/webrtc/+/efc5ae94f96606d4f876928b2b56ac91d794f9c5
Patch Set 1 #Patch Set 2 : Removed a temporary build workaround #
Messages
Total messages: 10 (6 generated)
|
|||||||||||||||||||