diff --git a/test/hotspot/jtreg/runtime/CommandLine/PrintClasses.java b/test/hotspot/jtreg/runtime/CommandLine/PrintClasses.java index e2b0b4ba9f6..098dd3a3979 100644 --- a/test/hotspot/jtreg/runtime/CommandLine/PrintClasses.java +++ b/test/hotspot/jtreg/runtime/CommandLine/PrintClasses.java @@ -59,5 +59,9 @@ public class PrintClasses { // Test for previous bug in misc flags printing output.shouldNotContain("##name"); + + pb.command(new PidJcmdExecutor().getCommandLine("VM.classes", "-location")); + output = new OutputAnalyzer(pb.start()); + output.stdoutContains(".*(file:/|jar:).*"); } }