提交 fdab09e9 编写于 作者: M michaelm

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

Reviewed-by: alanb
上级 1123744c
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册