18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 * @test
26 * @bug 8199137
27 * @summary VerifyStringTableAtExit should not crash
28 * @library /test/lib
29 * @modules java.base/jdk.internal.misc
30 * @run main StringTableVerifyTest
31 */
32
33 import jdk.test.lib.process.OutputAnalyzer;
34 import jdk.test.lib.process.ProcessTools;
35
36 public class StringTableVerifyTest {
37 public static void main(String[] args) throws Exception {
38 ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-XX:+VerifyStringTableAtExit", "-version");
39 OutputAnalyzer output = new OutputAnalyzer(pb.start());
40 output.shouldHaveExitValue(0);
41 }
42 }
43
|
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 * @test
26 * @bug 8199137
27 * @summary VerifyStringTableAtExit should not crash
28 * @library /test/lib
29 * @modules java.base/jdk.internal.misc
30 * @run main StringTableVerifyTest
31 */
32
33 import jdk.test.lib.process.OutputAnalyzer;
34 import jdk.test.lib.process.ProcessTools;
35
36 public class StringTableVerifyTest {
37 public static void main(String[] args) throws Exception {
38 ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-XX:+UnlockDiagnosticVMOptions", "-XX:+VerifyStringTableAtExit", "-version");
39 OutputAnalyzer output = new OutputAnalyzer(pb.start());
40 output.shouldHaveExitValue(0);
41 }
42 }
43
|