changeset 2888:a2b1ef1294c5

6989903: (process) test/java/lang/ProcessBuilder/Basic.java failing with "Bad file number" (sol) Reviewed-by: ohair, chegar
author alanb
date Thu, 07 Oct 2010 10:35:36 +0100
parents a6295291fab1
children 871cffb21423
files test/java/lang/ProcessBuilder/Basic.java
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/java/lang/ProcessBuilder/Basic.java	Wed Oct 06 21:55:28 2010 -0700
+++ b/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); }}};