summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--test/lib/minitest/unit.rb2
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 1f8ba747324..79699b72a67 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Thu May 29 22:18:57 2014 Tanaka Akira <akr@fsij.org>
+
+ * test/lib/minitest/unit.rb (capture_subprocess_io): Close fds.
+
Thu May 29 19:47:08 2014 Tanaka Akira <akr@fsij.org>
* io.c (rb_io_s_pipe): Close pipes if io_encoding_set() raises an
diff --git a/test/lib/minitest/unit.rb b/test/lib/minitest/unit.rb
index bc6bf48ebf9..e880d3654b8 100644
--- a/test/lib/minitest/unit.rb
+++ b/test/lib/minitest/unit.rb
@@ -524,6 +524,8 @@ module MiniTest
ensure
$stdout.reopen orig_stdout
$stderr.reopen orig_stderr
+ orig_stdout.close
+ orig_stderr.close
captured_stdout.close!
captured_stderr.close!
end