changeset 14372:0d10bb7339a9

8034781: [TESTBUG] runtime/ClassFileUnsupportedClassFileVersion.java unable to find or load main class Summary: Passed empty string to ProcessBuilder which caused problems on Linux, fixed by checking string length Reviewed-by: lfoltan, sla, mseledtsov
author ctornqvi
date Wed, 12 Feb 2014 20:40:02 +0100
parents e4e51dc2dca5
children 93206a165a90
files test/testlibrary/com/oracle/java/testlibrary/ProcessTools.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/testlibrary/com/oracle/java/testlibrary/ProcessTools.java	Wed Feb 12 12:09:22 2014 -0800
+++ b/test/testlibrary/com/oracle/java/testlibrary/ProcessTools.java	Wed Feb 12 20:40:02 2014 +0100
@@ -154,7 +154,7 @@
 
     if (addTestVmOptions) {
       String vmopts = System.getProperty("test.vm.opts");
-      if (vmopts != null) {
+      if (vmopts != null && vmopts.length() > 0) {
         Collections.addAll(args, vmopts.split("\\s"));
       }
     }