diff options
Diffstat (limited to 'test/ruby/test_io.rb')
-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? |