--- old/test/jdk/java/lang/ProcessBuilder/Basic.java 2018-11-27 13:58:09.859634574 -0500 +++ new/test/jdk/java/lang/ProcessBuilder/Basic.java 2018-11-27 13:58:09.687633721 -0500 @@ -2084,7 +2084,7 @@ //---------------------------------------------------------------- // Check that reads which are pending when Process.destroy is - // called, get EOF, not IOException("Stream closed"). + // called, get EOF, or IOException("Stream closed"). //---------------------------------------------------------------- try { final int cases = 4; @@ -2112,6 +2112,13 @@ default: throw new Error(); } equal(-1, r); + } catch (IOException ioe) { + if (!ioe.getMessage().equals("Stream closed")) { + // BufferedInputStream may throw IOE("Stream closed") in the case + // where there are some bytes in its buffer and close is called. + // The test is modified allow the current implementation. + unexpected(ioe); + } } catch (Throwable t) { unexpected(t); }}}; thread.start();