Bug 136068 - JSC_timeout is hard-coded in run-javascriptcore-test
Summary: JSC_timeout is hard-coded in run-javascriptcore-test
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-19 04:31 PDT by Akos Kiss
Modified: 2014-08-20 20:49 PDT (History)
4 users (show)

See Also:


Attachments
Proposed patch. (1.66 KB, patch)
2014-08-19 04:38 PDT, Akos Kiss
no flags Details | Formatted Diff | Diff
Proposed patch, v2 (1.26 KB, patch)
2014-08-19 05:30 PDT, Akos Kiss
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Akos Kiss 2014-08-19 04:31:29 PDT
Currently, the value of the JSC_timeout environment variable is unconditionally set to 60 (seconds). On some platforms, that's overly restrictive since the running time of some jsc tests can exceed 60 seconds (not because of hanging, just running slowly). The caller of run-javascriptcore-tests should be able to increase/set this timeout value to get valid results.
Comment 1 Akos Kiss 2014-08-19 04:38:55 PDT
Created attachment 236808 [details]
Proposed patch.

This patch allows changing the timeout for jsc tests by defining JSC_timeout in advance, e.g., as follows:
JSC_timeout=120 Tools/Scripts/run-javascriptcore-tests
Comment 2 Csaba Osztrogonác 2014-08-19 04:53:41 PDT
Comment on attachment 236808 [details]
Proposed patch.

View in context: https://bugs.webkit.org/attachment.cgi?id=236808&action=review

> Tools/Scripts/run-javascriptcore-tests:151
> +$ENV{JSC_timeout} = 60 if (!defined($ENV{JSC_timeout})); # Set a 60 second timeout on all jsc tests (if environment variable not defined already).

I think we can do it in a simpler way:
$ENV{JSC_timeout} = 60 unless $ENV{JSC_timeout};
Comment 3 Akos Kiss 2014-08-19 05:30:01 PDT
Created attachment 236810 [details]
Proposed patch, v2

Made the change more perlish, according to the review.
Comment 4 Csaba Osztrogonác 2014-08-19 05:30:57 PDT
Comment on attachment 236810 [details]
Proposed patch, v2

LGTM
Comment 5 WebKit Commit Bot 2014-08-19 06:09:40 PDT
Comment on attachment 236810 [details]
Proposed patch, v2

Clearing flags on attachment: 236810

Committed r172751: <http://trac.webkit.org/changeset/172751>
Comment 6 WebKit Commit Bot 2014-08-19 06:09:43 PDT
All reviewed patches have been landed.  Closing bug.