From 1e516be7110a8f167b416d37380b8e579deec46c Mon Sep 17 00:00:00 2001 From: mame Date: Fri, 2 Jan 2009 14:49:58 +0000 Subject: [PATCH] * test/ruby/test_sleep.rb (test_sleep_5sec): stop gc. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21279 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ test/ruby/test_sleep.rb | 3 +++ 2 files changed, 7 insertions(+) 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