hotspot/test/serviceability/dcmd/framework/VMVersionTest.java
changeset 28826 81fdc0e7d49e
parent 28821 f7820f311663
child 28942 7d690319db4a
equal deleted inserted replaced
28825:4557637e6f37 28826:81fdc0e7d49e
    34  * @test
    34  * @test
    35  * @summary Test of diagnostic command VM.version (tests all DCMD executors)
    35  * @summary Test of diagnostic command VM.version (tests all DCMD executors)
    36  * @library /testlibrary
    36  * @library /testlibrary
    37  * @build com.oracle.java.testlibrary.*
    37  * @build com.oracle.java.testlibrary.*
    38  * @build com.oracle.java.testlibrary.dcmd.*
    38  * @build com.oracle.java.testlibrary.dcmd.*
    39  * @run testng VMVersionTest
    39  * @run testng/othervm -XX:+UsePerfData VMVersionTest
    40  */
    40  */
    41 public class VMVersionTest {
    41 public class VMVersionTest {
    42     public void run(CommandExecutor executor) {
    42     public void run(CommandExecutor executor) {
    43         OutputAnalyzer output = executor.execute("VM.version");
    43         OutputAnalyzer output = executor.execute("VM.version");
    44         output.shouldMatch(".*(?:HotSpot|OpenJDK).*VM.*");
    44         output.shouldMatch(".*(?:HotSpot|OpenJDK).*VM.*");