8150955: RandomValidCommandsTest.java fails with UnsatisfiedLinkError: sun.hotspot.WhiteBox.registerNatives
authorppunegov
Tue, 15 Mar 2016 16:23:31 +0300
changeset 36610 7b866d93cd34
parent 36609 94f0720927a0
child 36611 eb4fe2f11579
8150955: RandomValidCommandsTest.java fails with UnsatisfiedLinkError: sun.hotspot.WhiteBox.registerNatives Summary: Replace invalid command with a valid one Reviewed-by: kvn
hotspot/test/compiler/compilercontrol/share/MultiCommand.java
--- 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;