diff --git a/ChangeLog b/ChangeLog index 3b2597d29e..9e57d8500e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Fri Jan 2 23:51:41 2009 Yusuke Endoh + + * test/ruby/test_sleep.rb (test_sleep_5sec): stop gc. + Fri Jan 2 23:36:10 2009 Tanaka Akira * ext/socket/socket.c: don't apply socktype hack [ruby-core:184] for diff --git a/test/ruby/test_sleep.rb b/test/ruby/test_sleep.rb index 675fdc9747..adc4876216 100644 --- a/test/ruby/test_sleep.rb +++ b/test/ruby/test_sleep.rb @@ -2,9 +2,12 @@ require 'test/unit' class TestSleep < Test::Unit::TestCase def test_sleep_5sec + GC.disable start = Time.now sleep 5 slept = Time.now-start assert_in_delta(5.0, slept, 0.1, "[ruby-core:18015]: longer than expected") + ensure + GC.enable end end