ruby-changes:23580
From: luislavena <ko1@a...>
Date: Sun, 13 May 2012 06:48:16 +0900 (JST)
Subject: [ruby-changes:23580] luislavena:r35631 (trunk): * test/ruby/test_io.rb (class TestIO): Disable GC during IO tests to
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] Modified files: trunk/ChangeLog trunk/test/ruby/test_io.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 35630) +++ ChangeLog (revision 35631) @@ -1,3 +1,9 @@ +Sun May 13 06:40:12 2012 Luis Lavena <luislavena@g...> + + * 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] + Sat May 12 07:00:16 2012 Eric Hodel <drbrain@s...> * ext/sdbm/init.c: Added documentation. Patch by Justin Collins, Index: test/ruby/test_io.rb =================================================================== --- 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 + def have_close_on_exec? begin $stdin.close_on_exec? -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/