mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/lib/minitest/unit.rb (capture_subprocess_io): Close fds.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2edc9ea5f8
commit
b519ce9a8a
2 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue