diff -r 1a454f5b7209 -r 02dc13de9152 jdk/test/java/lang/ProcessBuilder/Basic.java --- 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); }}};