ruby-changes:52321
From: normal <ko1@a...>
Date: Sat, 25 Aug 2018 05:28:14 +0900 (JST)
Subject: [ruby-changes:52321] normal:r64529 (trunk): test/ruby/test_io.rb (test_recycled_fd_close): use IO#read to avoid ppoll call
normal 2018-08-25 05:28:08 +0900 (Sat, 25 Aug 2018) New Revision: 64529 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64529 Log: 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) Modified files: trunk/test/ruby/test_io.rb Index: test/ruby/test_io.rb =================================================================== --- test/ruby/test_io.rb (revision 64528) +++ test/ruby/test_io.rb (revision 64529) @@ -3779,7 +3779,7 @@ __END__ https://github.com/ruby/ruby/blob/trunk/test/ruby/test_io.rb#L3779 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) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/