8268897: [TESTBUG] compiler/compilercontrol/mixed/RandomCommandsTest.java must not fail on Command.quiet

Reviewed-by: kvn
(cherry picked from commit 0dc65d3c74)
This commit is contained in:
Nils Eliasson
2021-06-30 21:05:15 +00:00
committed by Vitaly Provodin
parent 1327635718
commit cb9ef412b0

View File

@@ -72,7 +72,9 @@ public class MultiCommand extends AbstractTestBase {
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);