summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_io.rb8
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?