changeset 3639:68e3eba12afe

6751021: TEST_BUG: race condition in the test java/lang/Runtime/exec/Duped.java Reviewed-by: alanb
author michaelm
date Thu, 03 Feb 2011 12:57:04 +0000
parents 0f5dc2fc81b1
children e2a182adb30f
files test/java/lang/Runtime/exec/Duped.java
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);
         }