Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
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 with 3 additions and 1 deletion.
  1. +3 −1 test/hotspot/jtreg/compiler/compilercontrol/share/MultiCommand.java
@@ -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

@openjdk-notifier

This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot commented on 0dc65d3 Jun 30, 2021

Please sign in to comment.