changeset 10484:97c1a4ad293c

8150955: RandomValidCommandsTest.java fails with UnsatisfiedLinkError: sun.hotspot.WhiteBox.registerNatives Summary: Replace invalid command with a valid one Reviewed-by: kvn
author ppunegov
date Tue, 15 Mar 2016 16:23:31 +0300
parents bea0cfad5afa
children 6daf6d082fd0
files test/compiler/compilercontrol/share/MultiCommand.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/test/compiler/compilercontrol/share/MultiCommand.java	Tue Mar 15 12:34:41 2016 +0100
+++ b/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;