6751021: TEST_BUG: race condition in the test java/lang/Runtime/exec/Duped.java

Reviewed-by: alanb
This commit is contained in:
Michael McMahon 2011-02-03 12:57:04 +00:00
parent bdd3171405
commit 1d6cc8fc42

View File

@ -38,8 +38,7 @@ public class Duped {
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);
}