[前][次][番号順一覧][スレッド一覧]

ruby-changes:9768

From: yugui <ko1@a...>
Date: Sun, 4 Jan 2009 15:16:40 +0900 (JST)
Subject: [ruby-changes:9768] Ruby:r21308 (ruby_1_9_1): merges r21279 from trunk into ruby_1_9_1.

yugui	2009-01-04 15:16:06 +0900 (Sun, 04 Jan 2009)

  New Revision: 21308

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=21308

  Log:
    merges r21279 from trunk into ruby_1_9_1.
    * test/ruby/test_sleep.rb (test_sleep_5sec): stop gc.

  Modified files:
    branches/ruby_1_9_1/ChangeLog
    branches/ruby_1_9_1/test/ruby/test_sleep.rb

Index: ruby_1_9_1/ChangeLog
===================================================================
--- ruby_1_9_1/ChangeLog	(revision 21307)
+++ ruby_1_9_1/ChangeLog	(revision 21308)
@@ -1,3 +1,7 @@
+Fri Jan  2 23:51:41 2009  Yusuke Endoh  <mame@t...>
+
+	* test/ruby/test_sleep.rb (test_sleep_5sec): stop gc.
+
 Fri Jan  2 23:36:10 2009  Tanaka Akira  <akr@f...>
 
 	* ext/socket/socket.c: don't apply socktype hack [ruby-core:184] for
Index: ruby_1_9_1/test/ruby/test_sleep.rb
===================================================================
--- ruby_1_9_1/test/ruby/test_sleep.rb	(revision 21307)
+++ ruby_1_9_1/test/ruby/test_sleep.rb	(revision 21308)
@@ -2,9 +2,12 @@
 
 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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]