Skip to content

Commit 0dc65d3

Browse files
author
Nils Eliasson
committedJun 30, 2021
8268897: [TESTBUG] compiler/compilercontrol/mixed/RandomCommandsTest.java must not fail on Command.quiet
Reviewed-by: kvn
1 parent 3826012 commit 0dc65d3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎test/hotspot/jtreg/compiler/compilercontrol/share/MultiCommand.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ public static AbstractTestBase generateRandomTest(boolean validOnly) {
7272

7373
Executable exec = Utils.getRandomElement(METHODS).first;
7474
MethodDescriptor md;
75-
if (validOnly) {
75+
76+
// Command.quiet discards the method descriptor - can never fail on the method descriptor
77+
if (validOnly || cmd == Command.QUIET) {
7678
md = AbstractTestBase.getValidMethodDescriptor(exec);
7779
} else {
7880
md = AbstractTestBase.METHOD_GEN.generateRandomDescriptor(exec);

0 commit comments

Comments
 (0)
Please sign in to comment.