From e2aeaed63382217d3c1591a74fa68435173fd7fd Mon Sep 17 00:00:00 2001 From: naruse Date: Mon, 14 May 2012 08:14:37 +0000 Subject: merge revision(s) 35636,35637: [Backport #6429] * test/ruby/test_io.rb (TestIO): revert r35631. it broke the intent of test_flush_in_finalizer1. [ruby-core:43951] [Bug ##6228] * test/ruby/test_io.rb (test_flush_in_finalizer1): don't use IO.for_fd to close IO objects. it create IO object with already closed fd, and cause occasional Errno::EBADF in following tests. [ruby-core:45020] [Bug #6228] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@35646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_io.rb | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'test/ruby') diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb index 84a147aa06..36dab0815d 100644 --- a/test/ruby/test_io.rb +++ b/test/ruby/test_io.rb @@ -10,14 +10,6 @@ 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? @@ -1807,7 +1799,7 @@ End } end ensure - fds.each {|fd| IO.for_fd(fd).close rescue next} + GC.start end def test_flush_in_finalizer2 -- cgit v1.2.3