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

ruby-changes:21082

From: usa <ko1@a...>
Date: Wed, 31 Aug 2011 00:35:06 +0900 (JST)
Subject: [ruby-changes:21082] usa:r33131 (trunk): * test/-ext-/old_thread_select/test_old_thread_select.rb

usa	2011-08-31 00:34:54 +0900 (Wed, 31 Aug 2011)

  New Revision: 33131

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

  Log:
    * test/-ext-/old_thread_select/test_old_thread_select.rb
      (TestOldThreadSelect#test_old_select_read_timeout): if the machine
      is fast enough, the time used by code around IO.select may be smaller
      than Time implement threshold.

  Modified files:
    trunk/ChangeLog
    trunk/test/-ext-/old_thread_select/test_old_thread_select.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 33130)
+++ ChangeLog	(revision 33131)
@@ -1,3 +1,10 @@
+Wed Aug 31 00:30:49 2011  NAKAMURA Usaku  <usa@r...>
+
+	* test/-ext-/old_thread_select/test_old_thread_select.rb
+	  (TestOldThreadSelect#test_old_select_read_timeout): if the machine
+	  is fast enough, the time used by code around IO.select may be smaller
+	  than Time implement threshold.
+
 Wed Aug 31 00:04:38 2011  NAKAMURA Usaku  <usa@r...>
 
 	* ext/-test-/old_thread_select/old_thread_select.c (old_thread_select):
Index: test/-ext-/old_thread_select/test_old_thread_select.rb
===================================================================
--- test/-ext-/old_thread_select/test_old_thread_select.rb	(revision 33130)
+++ test/-ext-/old_thread_select/test_old_thread_select.rb	(revision 33131)
@@ -19,7 +19,7 @@
       rc = IO.old_thread_select([r.fileno], nil, nil, 0.001)
       diff = Time.now - t0
       assert_equal 0, rc
-      assert diff > 0.001, "returned too early"
+      assert diff >= 0.001, "returned too early"
     end
   end
 

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

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