ruby-changes:22857
From: usa <ko1@a...>
Date: Mon, 5 Mar 2012 16:51:45 +0900 (JST)
Subject: [ruby-changes:22857] usa:r34906 (trunk): * test/ruby/test_sleep.rb (TestSleep#test_sleep_5sec): syntax error.
usa 2012-03-05 16:51:31 +0900 (Mon, 05 Mar 2012) New Revision: 34906 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=34906 Log: * test/ruby/test_sleep.rb (TestSleep#test_sleep_5sec): syntax error. * test/ruby/test_sleep.rb (TestSleep#test_sleep_5sec): call uname only on linux because it's a workaround for linux only. Modified files: trunk/ChangeLog trunk/test/ruby/test_sleep.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 34905) +++ ChangeLog (revision 34906) @@ -1,3 +1,10 @@ +Mon Mar 5 16:50:22 2012 NAKAMURA Usaku <usa@r...> + + * test/ruby/test_sleep.rb (TestSleep#test_sleep_5sec): syntax error. + + * test/ruby/test_sleep.rb (TestSleep#test_sleep_5sec): call uname + only on linux because it's a workaround for linux only. + Mon Mar 5 12:44:12 2012 Nobuyoshi Nakada <nobu@r...> * st.c (unpack_entries): chain entries directly. based on a patch Index: test/ruby/test_sleep.rb =================================================================== --- test/ruby/test_sleep.rb (revision 34905) +++ test/ruby/test_sleep.rb (revision 34906) @@ -6,7 +6,7 @@ start = Time.now sleep 5 slept = Time.now-start - bottom = /Linux ([\d.]+)/ =~ `uname -sr` && ($1.split('.')<=>%w/2 6.18/<1 ? 4.99 : 5.0 + bottom = /linux/ =~ RUBY_PLATFORM && /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/