Changeset 83477 in webkit


Ignore:
Timestamp:
Apr 11, 2011 12:31:50 PM (13 years ago)
Author:
dpranke@chromium.org
Message:

2011-04-11 Dirk Pranke <dpranke@chromium.org>

Reviewed by Adam Roben.

new-run-webkit-tests: fix crash when running under windows cmd.exe
https://bugs.webkit.org/show_bug.cgi?id=58197

We would intermittently crash when running NRWT directly under
cmd.exe on windows because we were sharing the stdin file
descriptor between the python process and the http server.
cmd.exe really didn't like that, and there was no reason to
share the descriptor, so we now use a PIPE instead.

  • Scripts/webkitpy/layout_tests/port/http_server.py:
Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r83476 r83477  
     12011-04-11  Dirk Pranke  <dpranke@chromium.org>
     2
     3        Reviewed by Adam Roben.
     4
     5        new-run-webkit-tests: fix crash when running under windows cmd.exe
     6        https://bugs.webkit.org/show_bug.cgi?id=58197
     7
     8        We would intermittently crash when running NRWT directly under
     9        cmd.exe on windows because we were sharing the stdin file
     10        descriptor between the python process and the http server.
     11        cmd.exe really didn't like that, and there was no reason to
     12        share the descriptor, so we now use a PIPE instead.
     13
     14        * Scripts/webkitpy/layout_tests/port/http_server.py:
     15
    1162011-04-11  Dirk Pranke  <dpranke@chromium.org>
    217
  • trunk/Tools/Scripts/webkitpy/layout_tests/port/http_server.py

    r81834 r83477  
    215215        _log.debug('Starting http server, cmd="%s"' % str(start_cmd))
    216216        # FIXME: Should use Executive.run_command
    217         self._process = subprocess.Popen(start_cmd, env=env)
     217        self._process = subprocess.Popen(start_cmd, env=env, stdin=subprocess.PIPE)
    218218
    219219        # Wait for server to start.
Note: See TracChangeset for help on using the changeset viewer.