changeset 559:ebf09be0222c

6952188: update timeout for langtools jtreg tests on JPRT Reviewed-by: ohair
author jjg
date Thu, 13 May 2010 11:30:28 -0700
parents a6f2911a7c55
children e9ef849ae0ed
files test/Makefile
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/test/Makefile	Mon May 03 17:12:59 2010 -0700
+++ b/test/Makefile	Thu May 13 11:30:28 2010 -0700
@@ -150,6 +150,16 @@
 ###    -jtoptions:-Ejck.env.runtime.testCompile.groupMode.groupSize=$(JCK_GROUP_SIZE)
 endif
 
+# Timeouts -- by default, increase test timeouts when running on JPRT
+ifdef JPRT_JOB_ID
+  ifndef JTREG_TIMEOUT_FACTOR
+    JTREG_TIMEOUT_FACTOR = 3
+  endif
+endif
+ifdef JTREG_TIMEOUT_FACTOR
+  JTREG_OPTIONS += -timeoutFactor:$(JTREG_TIMEOUT_FACTOR)
+endif
+
 # Assertions: some tests show failures when assertions are enabled.
 # Since javac is typically loaded via the bootclassloader (either via TESTJAVA
 # or TESTBOOTCLASSPATH), you may need -esa to enable assertions in javac.