8150955: RandomValidCommandsTest.java fails with UnsatisfiedLinkError: sun.hotspot.WhiteBox.registerNatives
Summary: Replace invalid command with a valid one
Reviewed-by: kvn
--- a/hotspot/test/compiler/compilercontrol/share/MultiCommand.java Tue Mar 15 12:34:41 2016 +0100
+++ b/hotspot/test/compiler/compilercontrol/share/MultiCommand.java Tue Mar 15 16:23:31 2016 +0300
@@ -53,8 +53,8 @@
List<CompileCommand> testCases = new ArrayList<>();
for (Command cmd : commands) {
if (validOnly && cmd == Command.NONEXISTENT) {
- // skip invalid command
- continue;
+ // replace with a valid command
+ cmd = Command.EXCLUDE;
}
Executable exec = Utils.getRandomElement(METHODS).first;
MethodDescriptor md;