jdk/test/java/lang/ProcessBuilder/Basic.java
changeset 8539 eeb9fc5a68c1
parent 7668 d4a77089c587
child 8540 ed028ce13912
--- a/jdk/test/java/lang/ProcessBuilder/Basic.java	Tue Feb 22 10:19:35 2011 +0000
+++ b/jdk/test/java/lang/ProcessBuilder/Basic.java	Tue Feb 22 12:04:48 2011 +0000
@@ -1762,9 +1762,9 @@
 
             equal(p.exitValue(), 5);
 
-            p.getInputStream().close();
-            p.getErrorStream().close();
-            p.getOutputStream().close();
+            try { p.getInputStream().close(); } catch (IOException ignore) { }
+            try  {p.getErrorStream().close(); } catch (IOException ignore) { }
+            try { p.getOutputStream().close(); } catch (IOException ignore) { }
 
             InputStream[] streams = { p.getInputStream(), p.getErrorStream() };
             for (final InputStream in : streams) {