From 22bc40c0718927cc12e563bf23bc34c89851c6f1 Mon Sep 17 00:00:00 2001 From: Alan Bateman Date: Sun, 2 Mar 2014 15:56:07 +0000 Subject: [PATCH] 8010194: java/nio/channels/spi/SelectorProvider/inheritedChannel/run_tests.sh fails with "Timed out waiting ..." (sol) Reviewed-by: chegar --- .../inheritedChannel/Launcher.java | 27 +++++++++---------- .../inheritedChannel/Util.java | 25 +++-------------- 2 files changed, 15 insertions(+), 37 deletions(-) diff --git a/jdk/test/java/nio/channels/spi/SelectorProvider/inheritedChannel/Launcher.java b/jdk/test/java/nio/channels/spi/SelectorProvider/inheritedChannel/Launcher.java index aad0e586d20..366fb745fb0 100644 --- a/jdk/test/java/nio/channels/spi/SelectorProvider/inheritedChannel/Launcher.java +++ b/jdk/test/java/nio/channels/spi/SelectorProvider/inheritedChannel/Launcher.java @@ -22,8 +22,6 @@ */ /* - * - * * A Launcher to launch a java process with its standard input, output, * and error streams connected to a socket. */ @@ -40,24 +38,23 @@ public class Launcher { private static native void launch0(String cmdarray[], int fd) throws IOException; private static void launch(String className, String options[], String args[], int fd) throws IOException { - String[] javacmd = Util.javaCommand(); - int options_len = (options == null) ? 0 : options.length; - int args_len = (args == null) ? 0 : args.length; - // java [-options] class [args...] - int len = javacmd.length + options_len + 1 + args_len; - + int optsLen = (options == null) ? 0 : options.length; + int argsLen = (args == null) ? 0 : args.length; + int len = 1 + optsLen + 1 + argsLen; String cmdarray[] = new String[len]; int pos = 0; - for (int i=0; i