提交 6777111d 编写于 作者: A alanb

6989903: (process) test/java/lang/ProcessBuilder/Basic.java failing with "Bad file number" (sol)

Reviewed-by: ohair, chegar
上级 6d6d1476
...@@ -1843,9 +1843,11 @@ public class Basic { ...@@ -1843,9 +1843,11 @@ public class Basic {
public void run() { public void run() {
try { stdout.read(); } try { stdout.read(); }
catch (IOException e) { catch (IOException e) {
// Check that reader failed because stream was
// asynchronously closed.
// e.printStackTrace(); // e.printStackTrace();
if (EnglishUnix.is() && if (EnglishUnix.is() &&
! (e.getMessage().matches(".*Bad file descriptor.*"))) ! (e.getMessage().matches(".*Bad file.*")))
unexpected(e); unexpected(e);
} }
catch (Throwable t) { unexpected(t); }}}; catch (Throwable t) { unexpected(t); }}};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册