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

ruby-changes:32166

From: nobu <ko1@a...>
Date: Mon, 16 Dec 2013 21:21:30 +0900 (JST)
Subject: [ruby-changes:32166] nobu:r44245 (trunk): test_process.rb: fix for 32bit platforms

nobu	2013-12-16 21:21:24 +0900 (Mon, 16 Dec 2013)

  New Revision: 44245

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

  Log:
    test_process.rb: fix for 32bit platforms
    
    * test/ruby/test_process.rb (test_clock_gettime_unit): results can
      exceed Fixnum limit, especially on 32bit platforms.

  Modified files:
    trunk/test/ruby/test_process.rb
Index: test/ruby/test_process.rb
===================================================================
--- test/ruby/test_process.rb	(revision 44244)
+++ test/ruby/test_process.rb	(revision 44245)
@@ -1700,7 +1700,7 @@ EOS https://github.com/ruby/ruby/blob/trunk/test/ruby/test_process.rb#L1700
         next
       end
       t1 = Process.clock_gettime(Process::CLOCK_REALTIME, unit)
-      assert_kind_of num.class, t1, [unit, num].inspect
+      assert_kind_of num.integer? ? Integer : num.class, t1, [unit, num].inspect
       assert_in_delta t0, t1/num, 1, [unit, num].inspect
     end
   end

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

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