Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.
Browse files
8268897: [TESTBUG] compiler/compilercontrol/mixed/RandomCommandsTest.…
…java must not fail on Command.quiet

Reviewed-by: kvn
  • Loading branch information
Nils Eliasson committed Jun 30, 2021
1 parent 3826012 commit 0dc65d3c741f1b7e1bcb622eb21262a6e67a9abf
Showing 1 changed file with 3 additions and 1 deletion.
@@ -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);

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.