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

ruby-changes:22182

From: ayumin <ko1@a...>
Date: Sun, 8 Jan 2012 01:24:08 +0900 (JST)
Subject: [ruby-changes:22182] ayumin:r34231 (trunk): * test/-ext-/old_thread_select/test_old_thread_select.rb:

ayumin	2012-01-08 01:22:47 +0900 (Sun, 08 Jan 2012)

  New Revision: 34231

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

  Log:
    * test/-ext-/old_thread_select/test_old_thread_select.rb:
      avoid platform bug. [Bug #5858] [ruby-dev:45108]

  Modified files:
    trunk/ChangeLog
    trunk/test/-ext-/old_thread_select/test_old_thread_select.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 34230)
+++ ChangeLog	(revision 34231)
@@ -1,3 +1,8 @@
+Sun Jan  8 01:18:19 2012  Ayumu AIZAWA  <ayumu.aizawa@g...>
+
+	* test/-ext-/old_thread_select/test_old_thread_select.rb:
+	  avoid platform bug. [Bug #5858] [ruby-dev:45108]
+
 Sun Jan  8 00:46:34 2012  KOSAKI Motohiro  <kosaki.motohiro@g...>
 
 	* gc.c: get rid of implicit narrowing conversion.
Index: test/-ext-/old_thread_select/test_old_thread_select.rb
===================================================================
--- test/-ext-/old_thread_select/test_old_thread_select.rb	(revision 34230)
+++ test/-ext-/old_thread_select/test_old_thread_select.rb	(revision 34231)
@@ -4,6 +4,7 @@
   require '-test-/old_thread_select/old_thread_select'
 
   ANCIENT_LINUX = RUBY_PLATFORM =~ /linux/ && `uname -r`.chomp < '2.6.32'
+  DARWIN_10     = RUBY_PLATFORM =~ /darwin10/
 
   def with_pipe
     r, w = IO.pipe
@@ -87,7 +88,7 @@
       end
     end
 
-    unless ANCIENT_LINUX
+    unless ANCIENT_LINUX || DARWIN_10
       assert_operator diff, :>=, 1, "interrupted or short wait: diff=#{diff}"
     end
     assert_equal 0, rc

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

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