зеркало из https://github.com/github/ruby.git
test/ruby/test_io.rb (test_recycled_fd_close): use IO#read to avoid ppoll call
IO#sysread calls rb_wait_for_single_fd for compatibility, and perhaps something is amiss with that (unrelated to timer-thread elimination) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
72af13f3ba
Коммит
6277b924ea
|
@ -3779,7 +3779,7 @@ __END__
|
|||
noex = Thread.new do # everything right and never see exceptions :)
|
||||
until sig_rd.wait_readable(0)
|
||||
IO.pipe do |r, w|
|
||||
th = Thread.new { r.sysread(1) }
|
||||
th = Thread.new { r.read(1) }
|
||||
w.write(dot)
|
||||
assert_same th, th.join(15), '"good" reader timeout'
|
||||
assert_equal(dot, th.value)
|
||||
|
|
Загрузка…
Ссылка в новой задаче