# HG changeset patch # User michaelm # Date 1296737824 0 # Node ID 2042acb02807d3b39a92e1d4f4029a5605a07c47 # Parent 0dc88a08689307723fd78833ec8b0d28107a146b 6751021: TEST_BUG: race condition in the test java/lang/Runtime/exec/Duped.java Reviewed-by: alanb diff -r 0dc88a086893 -r 2042acb02807 jdk/test/java/lang/Runtime/exec/Duped.java --- a/jdk/test/java/lang/Runtime/exec/Duped.java Thu Feb 03 11:56:56 2011 +0000 +++ b/jdk/test/java/lang/Runtime/exec/Duped.java Thu Feb 03 12:57:04 2011 +0000 @@ -38,8 +38,7 @@ public static void main(String args[]) throws Exception { StringBuffer s = new StringBuffer(); int c; - while ((System.in.available() != 0) - && ((c = System.in.read()) != -1)) + while ((c = System.in.read()) != -1) s.append((char)c); System.out.println(s); }