diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-05-14 04:18:05 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-05-14 04:18:05 +0000 |
commit | 26e1ebb15e9d8c0bd82b4d0d56f54aafc6a8600a (patch) | |
tree | 7d5b692bbed44472e4aa12d75f514c60fbdce32b /test/ruby | |
parent | 4a4f81c903c8cb2091ba7dc6337eb6f9657b54c0 (diff) |
merge revision(s) 35631:
* 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/branches/ruby_1_9_3@35642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-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 edf449dd5c..84a147aa06 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? |