Changeset 124595 in webkit


Ignore:
Timestamp:
Aug 3, 2012, 4:23:08 AM (13 years ago)
Author:
kbalazs@webkit.org
Message:

[EFL] (REGRESSION 124581) : EFL 64-bit Debug bot is red and build is exiting early after 20 test crashes
https://bugs.webkit.org/show_bug.cgi?id=93084

Patch by Sudarsana Nagineni <sudarsana.nagineni@linux.intel.com> on 2012-08-03
Reviewed by Csaba Osztrogonác.

Fix regression introduced in r124581.

  • DumpRenderTree/efl/DumpRenderTree.cpp:

(getFinalTestURL): Convert the path into a full file URL.
(runTest):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r124581 r124595  
     12012-08-03  Sudarsana Nagineni  <sudarsana.nagineni@linux.intel.com>
     2
     3        [EFL] (REGRESSION 124581) : EFL 64-bit Debug bot is red and build is exiting early after 20 test crashes
     4        https://bugs.webkit.org/show_bug.cgi?id=93084
     5
     6        Reviewed by Csaba Osztrogonác.
     7
     8        Fix regression introduced in r124581.
     9
     10        * DumpRenderTree/efl/DumpRenderTree.cpp:
     11        (getFinalTestURL): Convert the path into a full file URL.
     12        (runTest):
     13
    1142012-08-03  Balazs Kelemen  <kbalazs@webkit.org>
    215
  • trunk/Tools/DumpRenderTree/efl/DumpRenderTree.cpp

    r124581 r124595  
    242242}
    243243
     244static String getFinalTestURL(const String& testURL)
     245{
     246    if (!testURL.startsWith("http://") && !testURL.startsWith("https://")) {
     247        char* cFilePath = ecore_file_realpath(testURL.utf8().data());
     248        const String filePath = String::fromUTF8(cFilePath);
     249        free(cFilePath);
     250
     251        if (ecore_file_exists(filePath.utf8().data()))
     252            return String("file://") + filePath;
     253    }
     254
     255    return testURL;
     256}
     257
    244258static void runTest(const char* inputLine)
    245259{
    246260    TestCommand command = parseInputLine(inputLine);
    247     const String testURL(command.pathOrURL.c_str());
    248     ASSERT(!testURL.isEmpty());
     261    const String testPathOrURL(command.pathOrURL.c_str());
     262    ASSERT(!testPathOrURL.isEmpty());
    249263    dumpPixelsForCurrentTest = command.shouldDumpPixels;
    250264    const String expectedPixelHash(command.expectedPixelHash.c_str());
     265
     266    // Convert the path into a full file URL if it does not look
     267    // like an HTTP/S URL (doesn't start with http:// or https://).
     268    const String testURL = getFinalTestURL(testPathOrURL);
    251269
    252270    browser->resetDefaultsToConsistentValues();
Note: See TracChangeset for help on using the changeset viewer.