OpenJDK / jdk / jdk
changeset 5647:9a0b03523aa9
6952188: update timeout for langtools jtreg tests on JPRT
Reviewed-by: ohair
author | jjg |
---|---|
date | Thu, 13 May 2010 11:30:28 -0700 |
parents | 515e4b33b335 |
children | e8aa492874b5 |
files | langtools/test/Makefile |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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.