# HG changeset patch # User alanb # Date 1393775767 0 # Node ID 1aa7ce9cd0f1fcada1c573593218592ae914ca19 # Parent 0cb50d5761df7f33fd4d7dade8c5eeb8b7aa2538 8010194: java/nio/channels/spi/SelectorProvider/inheritedChannel/run_tests.sh fails with "Timed out waiting ..." (sol) Reviewed-by: chegar diff -r 0cb50d5761df -r 1aa7ce9cd0f1 jdk/test/java/nio/channels/spi/SelectorProvider/inheritedChannel/Launcher.java --- a/jdk/test/java/nio/channels/spi/SelectorProvider/inheritedChannel/Launcher.java Sat Mar 01 11:57:57 2014 -0500 +++ b/jdk/test/java/nio/channels/spi/SelectorProvider/inheritedChannel/Launcher.java Sun Mar 02 15:56:07 2014 +0000 @@ -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 @@ 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