8208066: compiler/graalunit/JttThreadsTest.java failed with org.junit.runners.model.TestTimedOutException: test timed out after 20 seconds
authorepavlova
Fri, 12 Apr 2019 14:13:31 -0700
changeset 54527 96d290a7e94f
parent 54526 94148bed13c4
child 54528 ac56154f0b9e
child 57322 4744fdcf458c
child 57325 e678ef92ef0b
8208066: compiler/graalunit/JttThreadsTest.java failed with org.junit.runners.model.TestTimedOutException: test timed out after 20 seconds Reviewed-by: iignatyev
test/hotspot/jtreg/ProblemList-graal.txt
test/hotspot/jtreg/compiler/graalunit/common/GraalUnitTestLauncher.java
--- a/test/hotspot/jtreg/ProblemList-graal.txt	Fri Apr 12 16:30:19 2019 -0400
+++ b/test/hotspot/jtreg/ProblemList-graal.txt	Fri Apr 12 14:13:31 2019 -0700
@@ -38,8 +38,6 @@
 compiler/compilercontrol/mixed/RandomValidCommandsTest.java     8181753   generic-all
 compiler/compilercontrol/mixed/RandomCommandsTest.java          8181753   generic-all
 
-compiler/graalunit/JttThreadsTest.java                          8208066   generic-all
-
 compiler/jvmci/SecurityRestrictionsTest.java                    8181837   generic-all
 
 compiler/unsafe/UnsafeGetConstantField.java                     8181833   generic-all
--- a/test/hotspot/jtreg/compiler/graalunit/common/GraalUnitTestLauncher.java	Fri Apr 12 16:30:19 2019 -0400
+++ b/test/hotspot/jtreg/compiler/graalunit/common/GraalUnitTestLauncher.java	Fri Apr 12 14:13:31 2019 -0700
@@ -241,7 +241,8 @@
         javaFlags.add("-ea");
         // Make sure exception message is never null
         javaFlags.add("-XX:-OmitStackTraceInFastThrow");
-
+        // set timeout factor based on jtreg harness settings
+        javaFlags.add("-Dgraaltest.timeout.factor=" + System.getProperty("test.timeout.factor", "1.0"));
 
         // generate class path
         ArrayList<String> graalJars = new ArrayList<String>(Arrays.asList(GRAAL_EXTRA_JARS));