changeset 2485:399e657450f7

8172912: JTReg concurrency value must be limited Reviewed-by: erikj
author ihse
date Fri, 03 Feb 2017 14:32:38 +0100
parents 747de1af8677
children 96a95d5c0a08
files test/Makefile
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/Makefile	Thu Feb 02 21:55:29 2017 +0000
+++ b/test/Makefile	Fri Feb 03 14:32:38 2017 +0100
@@ -60,7 +60,12 @@
 -include $(TOPDIR)/closed/test/Makefile
 
 ifeq ($(TEST_JOBS), 0)
-  JDK_TEST_JOBS=$(JOBS)
+  ifeq ($(shell $(EXPR) $(JOBS) \> 50), 1)
+    # JTReg cannot handle more than 50 in concurrency
+    JDK_TEST_JOBS=50
+  else
+    JDK_TEST_JOBS=$(JOBS)
+  endif
 else
   JDK_TEST_JOBS=$(TEST_JOBS)
 endif