equal
deleted
inserted
replaced
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.*"); |