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

ruby-changes:31075

From: nobu <ko1@a...>
Date: Sun, 6 Oct 2013 09:28:20 +0900 (JST)
Subject: [ruby-changes:31075] nobu:r43154 (trunk): test_old_thread_select.rb: ignore short wait on Windows

nobu	2013-10-06 09:28:13 +0900 (Sun, 06 Oct 2013)

  New Revision: 43154

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

  Log:
    test_old_thread_select.rb: ignore short wait on Windows
    
    * test/-ext-/old_thread_select/test_old_thread_select.rb
      (test_old_select_signal_safe): ignore short wait on Windows.

  Modified files:
    trunk/test/-ext-/old_thread_select/test_old_thread_select.rb
Index: test/-ext-/old_thread_select/test_old_thread_select.rb
===================================================================
--- test/-ext-/old_thread_select/test_old_thread_select.rb	(revision 43153)
+++ test/-ext-/old_thread_select/test_old_thread_select.rb	(revision 43154)
@@ -5,6 +5,7 @@ class TestOldThreadSelect < Test::Unit:: https://github.com/ruby/ruby/blob/trunk/test/-ext-/old_thread_select/test_old_thread_select.rb#L5
 
   ANCIENT_LINUX = RUBY_PLATFORM =~ /linux/ && `uname -r`.chomp < '2.6.32'
   DARWIN_10     = RUBY_PLATFORM =~ /darwin10/
+  WINDOWS       = RUBY_PLATFORM =~ /mswin|mingw/
 
   def with_pipe
     r, w = IO.pipe
@@ -88,7 +89,7 @@ class TestOldThreadSelect < Test::Unit:: https://github.com/ruby/ruby/blob/trunk/test/-ext-/old_thread_select/test_old_thread_select.rb#L89
       end
     end
 
-    unless ANCIENT_LINUX || DARWIN_10
+    unless ANCIENT_LINUX || DARWIN_10 || WINDOWS
       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/

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