Skip to content

Commit ae6b8d0

Browse files
Amos ShiGoeLin
authored andcommitted
8208704: runtime/appcds/MultiReleaseJars.java timed out often in hs-tier7 testing
Increase timout to 2400 and reduce the amount of output Backport-of: 6f046a9
1 parent bc48a48 commit ae6b8d0

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

test/hotspot/jtreg/runtime/appcds/MultiReleaseJars.java

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,12 @@
2424

2525
/*
2626
* @test MultiReleaseJars
27-
* @bug 8170105
2827
* @summary Test multi-release jar with AppCDS.
2928
* @requires vm.cds
3029
* @library /test/lib
3130
* @modules java.base/jdk.internal.misc
3231
* jdk.jartool/sun.tools.jar
33-
* @run main/othervm MultiReleaseJars
32+
* @run main/othervm/timeout=2400 MultiReleaseJars
3433
*/
3534

3635
import java.io.File;
@@ -156,7 +155,6 @@ public static void main(String... args) throws Exception {
156155
String appClasses[] = {"version/Main", "version/Version"};
157156
String appJar = TestCommon.getTestJar("version.jar");
158157
String appJar2 = TestCommon.getTestJar("version2.jar");
159-
String verboseMode = "-verbose:class";
160158
String enableMultiRelease = "-Djdk.util.jar.enableMultiRelease=true";
161159
String jarVersion = null;
162160
String expectedOutput = null;
@@ -168,7 +166,7 @@ public static void main(String... args) throws Exception {
168166
output.shouldContain("Loading classes to share: done.");
169167
output.shouldHaveExitValue(0);
170168

171-
output = TestCommon.exec(appJar, verboseMode, mainClass);
169+
output = TestCommon.exec(appJar, mainClass);
172170
checkExecOutput(output, "I am running on version " + MAJOR_VERSION_STRING);
173171

174172
// 2. Test versions 7 and the current major version.
@@ -183,7 +181,7 @@ public static void main(String... args) throws Exception {
183181
output.shouldContain("Loading classes to share: done.");
184182
output.shouldHaveExitValue(0);
185183

186-
output = TestCommon.exec(appJar, verboseMode, mainClass);
184+
output = TestCommon.exec(appJar, mainClass);
187185
checkExecOutput(output, expectedOutput);
188186
}
189187

@@ -197,7 +195,7 @@ public static void main(String... args) throws Exception {
197195
// jdk corelib which doesn't emit the following warning message.
198196
//output.shouldContain("JDK" + i + " is not supported in multiple version jars");
199197

200-
output = TestCommon.exec(appJar, verboseMode, mainClass);
198+
output = TestCommon.exec(appJar, mainClass);
201199
if (i == 5)
202200
checkExecOutput(output, "I am running on version 7");
203201
else
@@ -212,7 +210,7 @@ public static void main(String... args) throws Exception {
212210
output = TestCommon.dump(appJar, appClasses, "-Djdk.util.jar.enableMultiRelease=false", jarVersion);
213211
output.shouldHaveExitValue(0);
214212

215-
output = TestCommon.exec(appJar, verboseMode, mainClass);
213+
output = TestCommon.exec(appJar, mainClass);
216214
expectedOutput = "I am running on version 7";
217215
checkExecOutput(output, expectedOutput);
218216
}
@@ -224,15 +222,15 @@ public static void main(String... args) throws Exception {
224222
output.shouldContain("Loading classes to share: done.");
225223
output.shouldHaveExitValue(0);
226224

227-
output = TestCommon.exec(appJar, "-Xbootclasspath/a:" + appJar, verboseMode, mainClass);
225+
output = TestCommon.exec(appJar, "-Xbootclasspath/a:" + appJar, mainClass);
228226
checkExecOutput(output, "I am running on version 7");
229227

230228
// 6. Sanity test case-insensitive "Multi-Release" attribute name
231229
output = TestCommon.dump(appJar2, appClasses);
232230
output.shouldContain("Loading classes to share: done.");
233231
output.shouldHaveExitValue(0);
234232

235-
output = TestCommon.exec(appJar2, verboseMode, mainClass);
233+
output = TestCommon.exec(appJar2, mainClass);
236234
checkExecOutput(output, "I am running on version " + MAJOR_VERSION_STRING);
237235
}
238236
}

0 commit comments

Comments
 (0)