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

ruby-changes:38893

From: nobu <ko1@a...>
Date: Fri, 19 Jun 2015 17:13:20 +0900 (JST)
Subject: [ruby-changes:38893] nobu:r50974 (trunk): test_last_thread.rb: relax

nobu	2015-06-19 17:12:54 +0900 (Fri, 19 Jun 2015)

  New Revision: 50974

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

  Log:
    test_last_thread.rb: relax
    
    * test/-ext-/gvl/test_last_thread.rb (test_last_thread): allow low
      resolution sleep.

  Modified files:
    trunk/test/-ext-/gvl/test_last_thread.rb
Index: test/-ext-/gvl/test_last_thread.rb
===================================================================
--- test/-ext-/gvl/test_last_thread.rb	(revision 50973)
+++ test/-ext-/gvl/test_last_thread.rb	(revision 50974)
@@ -15,7 +15,7 @@ class TestLastThread < Test::Unit::TestC https://github.com/ruby/ruby/blob/trunk/test/-ext-/gvl/test_last_thread.rb#L15
       t1 = Time.now
       t = t1 - t0
 
-      assert_operator(t, :>=, 1)
+      assert_in_delta(1.0, t, 0.16)
     end;
   end
 end

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

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