Changeset 75401 in webkit


Ignore:
Timestamp:
Jan 10, 2011 12:00:42 PM (13 years ago)
Author:
mjs@apple.com
Message:

2011-01-10 Maciej Stachowiak <mjs@apple.com>

Reviewed by Anders Carlsson.

WebKitTestRunner uses crazy amounts of CPU, making layout tests slow and flaky
https://bugs.webkit.org/show_bug.cgi?id=52160

  • WebKitTestRunner/mac/TestControllerMac.mm: (WTR::TestController::platformRunUntil): Instead of busy-looping, wait for the timeout. Anything that can make runUntil() conditions turn true will happen on a run loop cycle anyway.
Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r75398 r75401  
     12011-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
    1132011-01-10  Tony Chang  <tony@chromium.org>
    214
  • trunk/Tools/WebKitTestRunner/mac/TestControllerMac.mm

    r72031 r75401  
    5353{
    5454    CFAbsoluteTime end = CFAbsoluteTimeGetCurrent() + timeout;
     55    CFDateRef endDate = CFDateCreate(0, end);
    5556    while (!done && CFAbsoluteTimeGetCurrent() < end)
    56         [[NSRunLoop currentRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate distantPast]];
     57        [[NSRunLoop currentRunLoop] runMode:NSDefaultRunLoopMode beforeDate:(NSDate *)endDate];
     58    CFRelease(endDate);
    5759}
    5860
Note: See TracChangeset for help on using the changeset viewer.