Skip to content
This repository was archived by the owner on Aug 27, 2022. It is now read-only.
/ lanai Public archive

Commit bcf3ae8

Browse files
committedApr 30, 2020
8244142: some hotspot/runtime tests don't check exit code of forked JVM
Reviewed-by: gziemski, minqi
1 parent 47c30db commit bcf3ae8

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed
 

‎test/hotspot/jtreg/runtime/Metaspace/MaxMetaspaceSizeTest.java

+1
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,6 @@ public static void main(String... args) throws Exception {
4343
"--version");
4444
OutputAnalyzer output = new OutputAnalyzer(pb.start());
4545
output.shouldContain("MaxMetaspaceSize is too small.");
46+
output.shouldNotHaveExitValue(0);
4647
}
4748
}

‎test/hotspot/jtreg/runtime/getSysPackage/GetPackageXbootclasspath.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ public static void main(String args[]) throws Exception {
5454

5555
new OutputAnalyzer(ProcessTools.createJavaProcessBuilder(
5656
"-Xbootclasspath/a:" + test_classes, "P.Test")
57-
.start()).shouldContain("Test Passed");
57+
.start()).shouldContain("Test Passed")
58+
.shouldHaveExitValue(0);
5859
}
5960
}

‎test/hotspot/jtreg/runtime/records/RedefineRecord.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2019, 2020, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -103,6 +103,7 @@ public static void main(String argv[]) throws Exception {
103103
"RedefineRecord");
104104
OutputAnalyzer output = new OutputAnalyzer(pb.start());
105105
output.shouldNotContain("processing of -javaagent failed");
106+
output.shouldHaveExitValue(0);
106107
}
107108
}
108109
}

0 commit comments

Comments
 (0)