зеркало из https://github.com/github/ruby.git
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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
803c3929b8
Коммит
21212fba19
|
@ -5,6 +5,7 @@ class TestOldThreadSelect < Test::Unit::TestCase
|
|||
|
||||
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::TestCase
|
|||
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
|
||||
|
|
Загрузка…
Ссылка в новой задаче