1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/ruby/test_io.rb (class TestIO): Disable GC during IO tests to

avoid file descriptors being GC'ed. Suggestion by Tomoyuki Chikanaga
  [ruby-core:43951][Bug #6228]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
luislavena 2012-05-12 21:46:51 +00:00
parent 83d7576548
commit 32ef61144b
2 changed files with 14 additions and 0 deletions

View file

@ -1,3 +1,9 @@
Sun May 13 06:40:12 2012 Luis Lavena <luislavena@gmail.com>
* test/ruby/test_io.rb (class TestIO): Disable GC during IO tests to
avoid file descriptors being GC'ed. Suggestion by Tomoyuki Chikanaga
[ruby-core:43951][Bug #6228]
Sat May 12 07:00:16 2012 Eric Hodel <drbrain@segment7.net>
* ext/sdbm/init.c: Added documentation. Patch by Justin Collins,

View file

@ -10,6 +10,14 @@ require 'weakref'
require_relative 'envutil'
class TestIO < Test::Unit::TestCase
def setup
GC.disable
end
def teardown
GC.enable
end
def have_close_on_exec?
begin
$stdin.close_on_exec?