Skip to content
Permalink
Browse files
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):

Canonical link: https://commits.webkit.org/66924@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@76704 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
webkit-commit-queue committed Jan 26, 2011
1 parent 64024c5 commit b6fd9dbf81289cf7359b6f046e121d3ff752bdc4
Showing 2 changed files with 18 additions and 0 deletions.
@@ -1,3 +1,13 @@
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):

2011-01-26 Csaba Osztrogonác <ossy@webkit.org>

Reviewed by Andreas Kling.
@@ -58,6 +58,7 @@ static const char optionEnableAccelerated2DCanvas[] = "--enable-accelerated-2d-c
static const char optionStressOpt[] = "--stress-opt";
static const char optionStressDeopt[] = "--stress-deopt";
static const char optionJavaScriptFlags[] = "--js-flags=";
static const char optionNoTimeout[] = "--no-timeout=";

static void runTest(TestShell& shell, TestParams& params, const string& testName, bool testShellMode)
{
@@ -123,6 +124,7 @@ int main(int argc, char* argv[])
bool stressDeopt = false;
bool hardwareAcceleratedGL = false;
string javaScriptFlags;
bool noTimeout = false;
for (int i = 1; i < argc; ++i) {
string argument(argv[i]);
if (argument == "-")
@@ -155,6 +157,8 @@ int main(int argc, char* argv[])
stressDeopt = true;
else if (!argument.find(optionJavaScriptFlags))
javaScriptFlags = argument.substr(strlen(optionJavaScriptFlags));
else if (!argument.find(optionNoTimeout))
noTimeout = true;
else if (argument.size() && argument[0] == '-')
fprintf(stderr, "Unknown option: %s\n", argv[i]);
else
@@ -182,6 +186,10 @@ int main(int argc, char* argv[])
shell.setJavaScriptFlags(javaScriptFlags);
shell.setStressOpt(stressOpt);
shell.setStressDeopt(stressDeopt);
if (noTimeout) {
// 0x20000000ms is big enough for the purpose to avoid timeout in debugging.
shell.setLayoutTestTimeout(0x20000000);
}
if (serverMode && !tests.size()) {
params.printSeparators = true;
char testString[2048]; // 2048 is the same as the sizes of other platforms.

0 comments on commit b6fd9db

Please sign in to comment.