test/Makefile
changeset 43386 df350c85390b
parent 41648 12f2a158f88b
child 47218 918745561887
--- 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