Skip to content

Commit

Permalink
Fix condition of r34897.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nurse committed Mar 5, 2012
1 parent 4a6e738 commit 1d30263
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/ruby/test_sleep.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def test_sleep_5sec
start = Time.now
sleep 5
slept = Time.now-start
bottom = /Linux ([\d.]+)/ =~ `uname -sr` && $1.split('.')>%w/2 6.18/ ? 4.99 : 5.0
bottom = /Linux ([\d.]+)/ =~ `uname -sr` && ($1.split('.')<=>%w/2 6.18/<1 ? 4.99 : 5.0
assert_operator(bottom, :<=, slept)
assert_operator(slept, :<=, 6.0, "[ruby-core:18015]: longer than expected")
ensure
Expand Down

0 comments on commit 1d30263

Please sign in to comment.