From 62c73569c286b3bbc9f1c52a2ba4e665f450e878 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 16 Dec 2013 12:21:24 +0000 Subject: [PATCH] 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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_process.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index 06ccafc987..c77cbabee8 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -1700,7 +1700,7 @@ EOS 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