Description[Mac] Make CocoaTest::TearDown() more scalable in the face of valgrind.
Changes from std::vector<> to std::set<> because set_difference()
works on sorted inputs.
The loop is broken into two parts. The outer loop continues
while progress is being made. The inner loop spins the event
loop while:
- no progress has been made; and
- it hasn't spun enough times; or
- it hasn't spun for long enough
The odd timeout calculation is because some sequences need the
event loop spun after a timeout, not until a timeout (difference
between taking the time at the start and at the end).
As long as I was changing comments, I (hopefully) removed the
royal "We" in appeasement of The Mentovai.
BUG=36677
TEST=tests continue to work, even under valgrind
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=40185
Patch Set 1 #
Total comments: 5
Patch Set 2 : get rid of last bit of royalty. the world is a dark and bitter place. #
Messages
Total messages: 3 (0 generated)
|