ruby-changes:34149
From: akr <ko1@a...>
Date: Thu, 29 May 2014 22:26:07 +0900 (JST)
Subject: [ruby-changes:34149] akr:r46230 (trunk): * test/lib/minitest/unit.rb (capture_subprocess_io): Close fds.
akr 2014-05-29 22:26:02 +0900 (Thu, 29 May 2014) New Revision: 46230 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?revision=46230&view=revision Log: * test/lib/minitest/unit.rb (capture_subprocess_io): Close fds. Modified files: trunk/ChangeLog trunk/test/lib/minitest/unit.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 46229) +++ ChangeLog (revision 46230) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Thu May 29 22:18:57 2014 Tanaka Akira <akr@f...> + + * test/lib/minitest/unit.rb (capture_subprocess_io): Close fds. + Thu May 29 19:47:08 2014 Tanaka Akira <akr@f...> * io.c (rb_io_s_pipe): Close pipes if io_encoding_set() raises an Index: test/lib/minitest/unit.rb =================================================================== --- test/lib/minitest/unit.rb (revision 46229) +++ test/lib/minitest/unit.rb (revision 46230) @@ -524,6 +524,8 @@ module MiniTest https://github.com/ruby/ruby/blob/trunk/test/lib/minitest/unit.rb#L524 ensure $stdout.reopen orig_stdout $stderr.reopen orig_stderr + orig_stdout.close + orig_stderr.close captured_stdout.close! captured_stderr.close! end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/