Skip to content

Commit

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

Backport-of: f0136ec94539d0e30ec11d44f8143196da1f7125
  • Loading branch information
shipilev committed Jan 25, 2022
1 parent 25a418d commit 6315ce3
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
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 6315ce3

@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.