# HG changeset patch # User michaelm # Date 1296737824 0 # Node ID 68e3eba12afea9d450f68fabc76f1c7bab9fef80 # Parent 0f5dc2fc81b156ef92da4887a36bc7b5919f2792 6751021: TEST_BUG: race condition in the test java/lang/Runtime/exec/Duped.java Reviewed-by: alanb diff -r 0f5dc2fc81b1 -r 68e3eba12afe test/java/lang/Runtime/exec/Duped.java --- a/test/java/lang/Runtime/exec/Duped.java Thu Feb 03 11:56:56 2011 +0000 +++ b/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); }