summaryrefslogtreecommitdiff
path: root/test/ruby/test_sleep.rb
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-04-24 01:01:18 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-04-24 01:01:18 +0000
commit8c3b01022b932e57800419abb5ed0056e8120399 (patch)
tree2ac5fd19198a66ae5ed90c4391e14a3ca8b2f466 /test/ruby/test_sleep.rb
parentca258c86cfdd9a23b7e2b5d771374c381ac444f7 (diff)
call to_i
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_sleep.rb')
-rw-r--r--test/ruby/test_sleep.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_sleep.rb b/test/ruby/test_sleep.rb
index fdf08aafa1..82c7e0ff49 100644
--- a/test/ruby/test_sleep.rb
+++ b/test/ruby/test_sleep.rb
@@ -9,7 +9,7 @@ class TestSleep < Test::Unit::TestCase
bottom =
case RUBY_PLATFORM
when /linux/
- 4.98 if /Linux ([\d.]+)/ =~ `uname -sr` && ($1.split('.')<=>%w/2 6 18/)<1
+ 4.98 if /Linux ([\d.]+)/ =~ `uname -sr` && ($1.split('.').map(&:to_i)<=>[2,6,18])<1
when /mswin|mingw/
4.98
end