Changeset 182916 in webkit


Ignore:
Timestamp:
Apr 16, 2015 3:54:46 PM (9 years ago)
Author:
ap@apple.com
Message:

It is very hard to attach a debugger to WebProcess to debug tests
https://bugs.webkit.org/show_bug.cgi?id=143837

Reviewed by Chris Dumez.

--no-timeout used to only affect waitUntilDone timeout, but not IPC timeout in
WebKitTestRunner, and not pipe reading timeout in run-webkit-tests.

Now it disables all timeouts in tools, as is best for debugging tests.

  • Scripts/webkitpy/port/driver.py: (Driver.run_test): Respect --no-timeout, so

that the script doesn't terminate DRT/WKTR when there is no output for a long time.

  • WebKitTestRunner/Options.cpp: Removed --no-timeout-at-all, as --no-timeout

now has the same functionality.

Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r182912 r182916  
     12015-04-16  Alexey Proskuryakov  <ap@apple.com>
     2
     3        It is very hard to attach a debugger to WebProcess to debug tests
     4        https://bugs.webkit.org/show_bug.cgi?id=143837
     5
     6        Reviewed by Chris Dumez.
     7
     8        --no-timeout used to only affect waitUntilDone timeout, but not IPC timeout in
     9        WebKitTestRunner, and not pipe reading timeout in run-webkit-tests.
     10
     11        Now it disables all timeouts in tools, as is best for debugging tests.
     12
     13        * Scripts/webkitpy/port/driver.py: (Driver.run_test): Respect --no-timeout, so
     14        that the script doesn't terminate DRT/WKTR when there is no output for a long time.
     15
     16        * WebKitTestRunner/Options.cpp: Removed --no-timeout-at-all, as --no-timeout
     17        now has the same functionality.
     18
    1192015-04-16  Beth Dakin  <bdakin@apple.com>
    220
  • trunk/Tools/Scripts/webkitpy/port/driver.py

    r182018 r182916  
    187187        # FIXME: It's not the job of the driver to decide what the timeouts should be.
    188188        # Move the additional timeout to driver_input.
    189         deadline = test_begin_time + int(driver_input.timeout) / 1000.0 + 5
     189        if self._no_timeout:
     190            deadline = test_begin_time + 60 * 60 * 24 * 7  # 7 days. Using sys.maxint causes a hang.
     191        else:
     192            deadline = test_begin_time + int(driver_input.timeout) / 1000.0 + 5
    190193
    191194        self._server_process.write(command)
  • trunk/Tools/WebKitTestRunner/Options.cpp

    r182017 r182916  
    4646
    4747bool handleOptionNoTimeout(Options& options, const char*, const char*)
    48 {
    49     options.useWaitToDumpWatchdogTimer = false;
    50     return true;
    51 }
    52 
    53 bool handleOptionNoTimeoutAtAll(Options& options, const char*, const char*)
    5448{
    5549    options.useWaitToDumpWatchdogTimer = false;
     
    117111    : options(o)
    118112{
    119     optionList.append(Option("--no-timeout", "Disables waitUntilDone timeout.", handleOptionNoTimeout));
    120     optionList.append(Option("--no-timeout-at-all", "Disables all timeouts.", handleOptionNoTimeoutAtAll));
     113    optionList.append(Option("--no-timeout", "Disables all timeouts.", handleOptionNoTimeout));
    121114    optionList.append(Option("--verbose", "Turns on messages.", handleOptionVerbose));
    122115    optionList.append(Option("--gc-between-tests", "Garbage collection between tests.", handleOptionGcBetweenTests));
Note: See TracChangeset for help on using the changeset viewer.