6952188: update timeout for langtools jtreg tests on JPRT
authorjjg
Thu, 13 May 2010 11:30:28 -0700
changeset 5647 9a0b03523aa9
parent 5492 515e4b33b335
child 5648 e8aa492874b5
6952188: update timeout for langtools jtreg tests on JPRT Reviewed-by: ohair
langtools/test/Makefile
--- a/langtools/test/Makefile	Mon May 03 17:12:59 2010 -0700
+++ b/langtools/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.