diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-12-16 12:21:24 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-12-16 12:21:24 +0000 |
commit | 62c73569c286b3bbc9f1c52a2ba4e665f450e878 (patch) | |
tree | 561cd4d44463017a4e12254427c5ea3893bee30a /test/ruby/test_process.rb | |
parent | c5601931c2fa27cf0a38df028654c67163eeb528 (diff) |
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
Diffstat (limited to 'test/ruby/test_process.rb')
-rw-r--r-- | test/ruby/test_process.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |