1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
nobu 2013-12-16 12:21:24 +00:00
parent c5601931c2
commit 62c73569c2

View file

@ -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