Changeset 76704 in webkit


Ignore:
Timestamp:
Jan 26, 2011 11:53:52 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-01-26 Xianzhu Wang <wangxianzhu@google.com>

Reviewed by Tony Chang.

Add '--no-timeout' option to Chromium DRT to ease debugging.
https://bugs.webkit.org/show_bug.cgi?id=52873

  • DumpRenderTree/chromium/DumpRenderTree.cpp: (main):
Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r76694 r76704  
     12011-01-26  Xianzhu Wang  <wangxianzhu@google.com>
     2
     3        Reviewed by Tony Chang.
     4
     5        Add '--no-timeout' option to Chromium DRT to ease debugging.
     6        https://bugs.webkit.org/show_bug.cgi?id=52873
     7
     8        * DumpRenderTree/chromium/DumpRenderTree.cpp:
     9        (main):
     10
    1112011-01-26  Csaba Osztrogonác  <ossy@webkit.org>
    212
  • trunk/Tools/DumpRenderTree/chromium/DumpRenderTree.cpp

    r75800 r76704  
    5959static const char optionStressDeopt[] = "--stress-deopt";
    6060static const char optionJavaScriptFlags[] = "--js-flags=";
     61static const char optionNoTimeout[] = "--no-timeout=";
    6162
    6263static void runTest(TestShell& shell, TestParams& params, const string& testName, bool testShellMode)
     
    124125    bool hardwareAcceleratedGL = false;
    125126    string javaScriptFlags;
     127    bool noTimeout = false;
    126128    for (int i = 1; i < argc; ++i) {
    127129        string argument(argv[i]);
     
    156158        else if (!argument.find(optionJavaScriptFlags))
    157159            javaScriptFlags = argument.substr(strlen(optionJavaScriptFlags));
     160        else if (!argument.find(optionNoTimeout))
     161            noTimeout = true;
    158162        else if (argument.size() && argument[0] == '-')
    159163            fprintf(stderr, "Unknown option: %s\n", argv[i]);
     
    183187        shell.setStressOpt(stressOpt);
    184188        shell.setStressDeopt(stressDeopt);
     189        if (noTimeout) {
     190            // 0x20000000ms is big enough for the purpose to avoid timeout in debugging.
     191            shell.setLayoutTestTimeout(0x20000000);
     192        }
    185193        if (serverMode && !tests.size()) {
    186194            params.printSeparators = true;
Note: See TracChangeset for help on using the changeset viewer.