Bug 136068

Summary: JSC_timeout is hard-coded in run-javascriptcore-test
Product: WebKit Reporter: Akos Kiss <akiss>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, darin, fpizlo, ossy
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Proposed patch.
none
Proposed patch, v2 none

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.