24 /*
25 * @test
26 * @key nmt
27 * @summary Test for deprecated message if -XX:-AutoShutdownNMT is specified
28 * @library /testlibrary
29 * @modules java.base/sun.misc
30 * java.management
31 */
32
33 import jdk.test.lib.*;
34
35 public class AutoshutdownNMT {
36
37 public static void main(String args[]) throws Exception {
38
39 ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(
40 "-XX:NativeMemoryTracking=detail",
41 "-XX:-AutoShutdownNMT",
42 "-version");
43 OutputAnalyzer output = new OutputAnalyzer(pb.start());
44 output.shouldContain("ignoring option AutoShutdownNMT");
45 }
46 }
|
24 /*
25 * @test
26 * @key nmt
27 * @summary Test for deprecated message if -XX:-AutoShutdownNMT is specified
28 * @library /testlibrary
29 * @modules java.base/sun.misc
30 * java.management
31 */
32
33 import jdk.test.lib.*;
34
35 public class AutoshutdownNMT {
36
37 public static void main(String args[]) throws Exception {
38
39 ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(
40 "-XX:NativeMemoryTracking=detail",
41 "-XX:-AutoShutdownNMT",
42 "-version");
43 OutputAnalyzer output = new OutputAnalyzer(pb.start());
44 output.shouldContain("Ignoring option AutoShutdownNMT");
45 }
46 }
|