Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.


8268897: [TESTBUG] compiler/compilercontrol/mixed/RandomCommandsTest.…
Browse files Browse the repository at this point in the history
…java must not fail on Command.quiet

Reviewed-by: kvn
  • Loading branch information
Nils Eliasson committed Jun 30, 2021
1 parent 3826012 commit 0dc65d3
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -72,7 +72,9 @@ public static AbstractTestBase generateRandomTest(boolean validOnly) {

Executable exec = Utils.getRandomElement(METHODS).first;
MethodDescriptor md;
if (validOnly) {

// Command.quiet discards the method descriptor - can never fail on the method descriptor
if (validOnly || cmd == Command.QUIET) {
md = AbstractTestBase.getValidMethodDescriptor(exec);
} else {
md = AbstractTestBase.METHOD_GEN.generateRandomDescriptor(exec);
Expand Down

1 comment on commit 0dc65d3

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.