Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
8275687: runtime/CommandLine/PrintTouchedMethods test shouldn't catch…
… RuntimeException

Reviewed-by: iklam, chagedorn
  • Loading branch information
Fairoz Matte authored and chhagedorn committed Nov 25, 2021
1 parent 21e302a commit f0136ec
Showing 1 changed file with 2 additions and 6 deletions.
Expand Up @@ -41,10 +41,6 @@ public static void main(String args[]) throws Exception {
var pb = new ProcessBuilder();
pb.command(new String[] {JDKToolFinder.getJDKTool("jcmd"), pid, "VM.print_touched_methods"});
var output = new OutputAnalyzer(pb.start());
try {
output.shouldContain("PrintTouchedMethodsJcmd.main:([Ljava/lang/String;)V");
} catch (RuntimeException e) {
output.shouldContain("Unknown diagnostic command");
}
}
output.shouldContain("PrintTouchedMethodsJcmd.main:([Ljava/lang/String;)V");
}
}

1 comment on commit f0136ec

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.