Changeset 75401 in webkit
- Timestamp:
- Jan 10, 2011 12:00:42 PM (13 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r75398 r75401 1 2011-01-10 Maciej Stachowiak <mjs@apple.com> 2 3 Reviewed by Anders Carlsson. 4 5 WebKitTestRunner uses crazy amounts of CPU, making layout tests slow and flaky 6 https://bugs.webkit.org/show_bug.cgi?id=52160 7 8 * WebKitTestRunner/mac/TestControllerMac.mm: 9 (WTR::TestController::platformRunUntil): Instead of busy-looping, wait for the timeout. 10 Anything that can make runUntil() conditions turn true will happen on a run loop cycle 11 anyway. 12 1 13 2011-01-10 Tony Chang <tony@chromium.org> 2 14 -
trunk/Tools/WebKitTestRunner/mac/TestControllerMac.mm
r72031 r75401 53 53 { 54 54 CFAbsoluteTime end = CFAbsoluteTimeGetCurrent() + timeout; 55 CFDateRef endDate = CFDateCreate(0, end); 55 56 while (!done && CFAbsoluteTimeGetCurrent() < end) 56 [[NSRunLoop currentRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate distantPast]]; 57 [[NSRunLoop currentRunLoop] runMode:NSDefaultRunLoopMode beforeDate:(NSDate *)endDate]; 58 CFRelease(endDate); 57 59 } 58 60
Note: See TracChangeset
for help on using the changeset viewer.