changeset 59632:008ba37c3fee

8246697: Test: java/util/StringJoiner/StringJoinerTest.java failing with OOM Reviewed-by: iignatyev
author jlaskey
date Fri, 05 Jun 2020 16:34:23 -0300
parents cd0e3e1c5d99
children 88ba70c9da28
files test/jdk/ProblemList.txt test/jdk/java/util/StringJoiner/MergeTest.java test/jdk/java/util/StringJoiner/StringJoinerTest.java
diffstat 3 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/test/jdk/ProblemList.txt	Fri Jun 05 10:14:10 2020 -0700
+++ b/test/jdk/ProblemList.txt	Fri Jun 05 16:34:23 2020 -0300
@@ -883,7 +883,6 @@
 # jdk_util
 
 java/util/ServiceLoader/ReloadTest.java                     8242935 generic-all
-java/util/StringJoiner/StringJoinerTest.java                8246697 generic-all
 
 ############################################################################
 
--- a/test/jdk/java/util/StringJoiner/MergeTest.java	Fri Jun 05 10:14:10 2020 -0700
+++ b/test/jdk/java/util/StringJoiner/MergeTest.java	Fri Jun 05 16:34:23 2020 -0300
@@ -26,7 +26,8 @@
  * @bug 8017231 8020977 8054221
  * @summary test  StringJoiner::merge
  * @modules java.base/jdk.internal.util
- * @run testng MergeTest
+ * @requires os.maxMemory > 4G
+ * @run testng/othervm -Xmx4g MergeTest
  */
 
 import java.util.StringJoiner;
--- a/test/jdk/java/util/StringJoiner/StringJoinerTest.java	Fri Jun 05 10:14:10 2020 -0700
+++ b/test/jdk/java/util/StringJoiner/StringJoinerTest.java	Fri Jun 05 16:34:23 2020 -0300
@@ -25,7 +25,8 @@
  * @bug 5015163 7172553
  * @summary tests StringJoinerTest
  * @modules java.base/jdk.internal.util
- * @run testng StringJoinerTest
+ * @requires os.maxMemory > 4G
+ * @run testng/othervm -Xmx4g StringJoinerTest
  * @author Jim Gish
  */
 import java.util.ArrayList;