--- old/test/java/lang/Runtime/exec/ConcurrentRead.java 2014-02-27 13:19:05.742393603 +0400 +++ new/test/java/lang/Runtime/exec/ConcurrentRead.java 2014-02-27 13:19:05.186393589 +0400 @@ -30,21 +30,17 @@ import java.io.InputStream; import java.io.OutputStream; -import java.io.File; -import java.io.IOException; public class ConcurrentRead { static volatile Exception savedException; - static final String TEE = "/usr/bin/tee"; public static void main(String[] args) throws Exception { - - if (File.separatorChar == '\\' || // Windows - !new File(TEE).exists()) // no tee + if (System.getProperty("os.name").startsWith("Windows")) { + System.err.println("Not for Windows"); return; - - Process p = Runtime.getRuntime().exec(TEE); + } + Process p = Runtime.getRuntime().exec(UnixCommands.tee()); OutputStream out = p.getOutputStream(); InputStream in = p.getInputStream(); Thread t1 = new WriterThread(out, in);