2012/5/13 luislavena <ko1 / atdot.net>:
> luislavena      2012-05-13 06:46:51 +0900 (Sun, 13 May 2012)
>
>  New Revision: 35631
>
>  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=35631
>
>  Log:
>    * 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]

> --- test/ruby/test_io.rb        (revision 35630)
> +++ test/ruby/test_io.rb        (revision 35631)
> @@ -10,6 +10,14 @@
>  require_relative 'envutil'
>
>  class TestIO < Test::Unit::TestCase
> +  def setup
> +    GC.disable
> +  end
> +
> +  def teardown
> +    GC.enable
> +  end
> +

The patch makes two tests skip.

http://www.rubyist.net/~akr/chkbuild/debian/ruby-trunk/log/20120512T215406Z.diff.html.gz

+TestIO#test_autoclose_false_closed_by_finalizer = <elapsed> s = S
+TestIO#test_autoclose_true_closed_by_finalizer = <elapsed> s = S

It seems that disabling GC for all tests is too far.

Is it difficult to restrict the fix to tests actually have trouble with GC?
-- 
Tanaka Akira