[前][次][番号順一覧][スレッド一覧]

ruby-changes:22855

From: naruse <ko1@a...>
Date: Mon, 5 Mar 2012 16:37:19 +0900 (JST)
Subject: [ruby-changes:22855] naruse:r34904 (trunk): Fix condition of r34897.

naruse	2012-03-05 16:36:47 +0900 (Mon, 05 Mar 2012)

  New Revision: 34904

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=34904

  Log:
    Fix condition of r34897.

  Modified files:
    trunk/test/ruby/test_sleep.rb

Index: test/ruby/test_sleep.rb
===================================================================
--- test/ruby/test_sleep.rb	(revision 34903)
+++ test/ruby/test_sleep.rb	(revision 34904)
@@ -6,7 +6,7 @@
     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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]