⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 98040 in webkit


Ignore:
Timestamp:
Oct 20, 2011, 4:36:35 PM (15 years ago)
Author:
eric@webkit.org
Message:

Possible REGRESSION(97879): NRWT fails when DumpRenderTree crashes
https://bugs.webkit.org/show_bug.cgi?id=70524

Reviewed by Adam Barth.

This is a speculative fix, since I do not use a platform
which outputs crashlogs over stderr.

  • Scripts/webkitpy/layout_tests/port/server_process.py:
  • Scripts/webkitpy/layout_tests/port/webkit.py:
Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r98034 r98040  
     12011-10-20  Eric Seidel  <eric@webkit.org>
     2
     3        Possible REGRESSION(97879): NRWT fails when DumpRenderTree crashes
     4        https://bugs.webkit.org/show_bug.cgi?id=70524
     5
     6        Reviewed by Adam Barth.
     7
     8        This is a speculative fix, since I do not use a platform
     9        which outputs crashlogs over stderr.
     10
     11        * Scripts/webkitpy/layout_tests/port/server_process.py:
     12        * Scripts/webkitpy/layout_tests/port/webkit.py:
     13
    1142011-10-20  Eric Seidel  <eric@webkit.org>
    215
  • trunk/Tools/Scripts/webkitpy/layout_tests/port/server_process.py

    r98034 r98040  
    143143        return None
    144144
     145    def pop_all_buffered_stderr(self):
     146        return self._pop_error_bytes(len(self._error))
     147
    145148    def read_stdout_line(self, deadline):
    146149        return self._read(deadline, self._pop_stdout_line_if_ready)
  • trunk/Tools/Scripts/webkitpy/layout_tests/port/webkit.py

    r98034 r98040  
    533533        image, actual_image_hash = self._read_optional_image_block(deadline)  # The second (optional) block is image data.
    534534
    535         # We may not have read all output (if an error occured), but we certainly should have read all error bytes.
    536         assert not self._server_process._error, "Unprocessed error output: %s" % self._server_process._error
     535        # We may not have read all of the output if an error (crash) occured.
     536        # Since some platforms output the stacktrace over error, we should
     537        # dump any buffered error into self.error_from_test.
     538        # FIXME: We may need to also read stderr until the process dies?
     539        self.error_from_test += self._server_process.pop_all_buffered_stderr()
     540
    537541        return DriverOutput(text, image, actual_image_hash, audio,
    538542            crash=self._detected_crash(), test_time=time.time() - start_time,
Note: See TracChangeset for help on using the changeset viewer.