< prev index next >

test/runtime/CommandLine/UnrecognizedVMOption.java

Print this page

        

*** 23,38 **** /* * @test * @bug 8006298 * @summary Using an unrecognized VM option should print the name of the option ! * @library /testlibrary * @modules java.base/jdk.internal.misc * java.management */ ! import jdk.test.lib.*; public class UnrecognizedVMOption { public static void main(String[] args) throws Exception { ProcessBuilder pb = ProcessTools.createJavaProcessBuilder( "-XX:bogus_option", "-version"); --- 23,39 ---- /* * @test * @bug 8006298 * @summary Using an unrecognized VM option should print the name of the option ! * @library /test/lib * @modules java.base/jdk.internal.misc * java.management */ ! import jdk.test.lib.process.ProcessTools; ! import jdk.test.lib.process.OutputAnalyzer; public class UnrecognizedVMOption { public static void main(String[] args) throws Exception { ProcessBuilder pb = ProcessTools.createJavaProcessBuilder( "-XX:bogus_option", "-version");
< prev index next >