Changeset 86434 in webkit


Ignore:
Timestamp:
May 13, 2011 8:26:45 AM (13 years ago)
Author:
zherczeg@webkit.org
Message:

2011-05-13 Zoltan Herczeg <zherczeg@webkit.org>

Reviewed by Csaba Osztrogonác.

Missing 2nd #EOF if WebProcess is killed.
https://bugs.webkit.org/show_bug.cgi?id=60761

If the WebProcess is killed, only one #EOF is yielded
by WebKitTestRunner. However, run-webkit-test wait for
a second #EOF, which signals the finishing of pixel dump.
Since this never happens, run-webkit-test waits forever.

  • WebKitTestRunner/TestInvocation.cpp: (WTR::TestInvocation::dump): (WTR::TestInvocation::didReceiveMessageFromInjectedBundle):
  • WebKitTestRunner/TestInvocation.h:
Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r86429 r86434  
     12011-05-13  Zoltan Herczeg  <zherczeg@webkit.org>
     2
     3        Reviewed by Csaba Osztrogonác.
     4
     5        Missing 2nd #EOF if WebProcess is killed.
     6        https://bugs.webkit.org/show_bug.cgi?id=60761
     7
     8        If the WebProcess is killed, only one #EOF is yielded
     9        by WebKitTestRunner. However, run-webkit-test wait for
     10        a second #EOF, which signals the finishing of pixel dump.
     11        Since this never happens, run-webkit-test waits forever.
     12
     13        * WebKitTestRunner/TestInvocation.cpp:
     14        (WTR::TestInvocation::dump):
     15        (WTR::TestInvocation::didReceiveMessageFromInjectedBundle):
     16        * WebKitTestRunner/TestInvocation.h:
     17
    1182011-05-13  Kristóf Kosztyó  <Kosztyo.Kristof@stud.u-szeged.hu>
    219
  • trunk/Tools/WebKitTestRunner/TestInvocation.cpp

    r81494 r86434  
    162162}
    163163
    164 void TestInvocation::dump(const char* stringToDump)
     164void TestInvocation::dump(const char* stringToDump, bool singleEOF)
    165165{
    166166    printf("Content-Type: text/plain\n");
     
    169169    fputs("#EOF\n", stdout);
    170170    fputs("#EOF\n", stderr);
     171    if (!singleEOF)
     172        fputs("#EOF\n", stdout);
    171173    fflush(stdout);
    172174    fflush(stderr);
     
    208210
    209211        // Dump text.
    210         dump(toSTD(textOutput).c_str());
     212        dump(toSTD(textOutput).c_str(), true);
    211213
    212214        // Dump pixels (if necessary).
  • trunk/Tools/WebKitTestRunner/TestInvocation.h

    r81494 r86434  
    4646
    4747private:
    48     void dump(const char*);
     48    void dump(const char*, bool singleEOF = false);
    4949    void dumpPixelsAndCompareWithExpected(WKImageRef);
    5050   
Note: See TracChangeset for help on using the changeset viewer.