hotspot/test/runtime/CommandLine/VMOptionWarning.java
changeset 34285 0b07014c15e9
parent 30604 b8d532cb6420
child 36851 03e2f4d0a421
equal deleted inserted replaced
34277:d457b9400c99 34285:0b07014c15e9
    45 
    45 
    46         pb = ProcessTools.createJavaProcessBuilder("-XX:+PrintInlining", "-version");
    46         pb = ProcessTools.createJavaProcessBuilder("-XX:+PrintInlining", "-version");
    47         output = new OutputAnalyzer(pb.start());
    47         output = new OutputAnalyzer(pb.start());
    48         output.shouldContain("Error: VM option 'PrintInlining' is diagnostic and must be enabled via -XX:+UnlockDiagnosticVMOptions.");
    48         output.shouldContain("Error: VM option 'PrintInlining' is diagnostic and must be enabled via -XX:+UnlockDiagnosticVMOptions.");
    49 
    49 
    50         pb = ProcessTools.createJavaProcessBuilder("-XX:+TraceJNICalls", "-version");
    50         pb = ProcessTools.createJavaProcessBuilder("-XX:+VerifyStack", "-version");
    51         output = new OutputAnalyzer(pb.start());
    51         output = new OutputAnalyzer(pb.start());
    52         output.shouldContain("Error: VM option 'TraceJNICalls' is develop and is available only in debug version of VM.");
    52         output.shouldContain("Error: VM option 'VerifyStack' is develop and is available only in debug version of VM.");
    53 
    53 
    54         pb = ProcessTools.createJavaProcessBuilder("-XX:+TraceJVMCalls", "-version");
    54         pb = ProcessTools.createJavaProcessBuilder("-XX:+ExecuteInternalVMTests", "-version");
    55         output = new OutputAnalyzer(pb.start());
    55         output = new OutputAnalyzer(pb.start());
    56         output.shouldContain("Error: VM option 'TraceJVMCalls' is notproduct and is available only in debug version of VM.");
    56         output.shouldContain("Error: VM option 'ExecuteInternalVMTests' is notproduct and is available only in debug version of VM.");
    57     }
    57     }
    58 }
    58 }