diff options
author | luislavena <luislavena@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-05-12 21:46:51 +0000 |
---|---|---|
committer | luislavena <luislavena@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-05-12 21:46:51 +0000 |
commit | 32ef61144b9556fd73bd6c5d953b74a163939047 (patch) | |
tree | d121150f89a3349d3db24ce4c99fea6e8205bb2d /test | |
parent | 83d7576548cd26f59c283ec6e570df44f71f8394 (diff) | |
download | ruby-32ef61144b9556fd73bd6c5d953b74a163939047.tar.gz |
* 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
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_io.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb index ebf9b760dd..94e87bf25a 100644 --- a/test/ruby/test_io.rb +++ b/test/ruby/test_io.rb @@ -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? |