jdk/test/java/lang/ProcessBuilder/Basic.java
changeset 6849 02dc13de9152
parent 6669 8f8d4d5768ae
child 7668 d4a77089c587
--- a/jdk/test/java/lang/ProcessBuilder/Basic.java	Wed Oct 06 21:55:28 2010 -0700
+++ b/jdk/test/java/lang/ProcessBuilder/Basic.java	Thu Oct 07 10:35:36 2010 +0100
@@ -1843,9 +1843,11 @@
                     public void run() {
                         try { stdout.read(); }
                         catch (IOException e) {
+                            // Check that reader failed because stream was
+                            // asynchronously closed.
                             // e.printStackTrace();
                             if (EnglishUnix.is() &&
-                                ! (e.getMessage().matches(".*Bad file descriptor.*")))
+                                ! (e.getMessage().matches(".*Bad file.*")))
                                 unexpected(e);
                         }
                         catch (Throwable t) { unexpected(t); }}};