summaryrefslogtreecommitdiff
path: root/test/fiddle/test_function.rb
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-08-14 00:31:31 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-08-14 00:31:31 +0000
commit1e769ce6eddd0275afa4cecdd7b569f21fd65667 (patch)
tree1f03a93ddcbfb4ea9a327cb4b7df8df4c083cbfe /test/fiddle/test_function.rb
parent8da12db13d3410b56dd7afdac73eee28318e1b70 (diff)
test/fiddle/test_function.rb (test_nogvl_poll): stop timer hack
EINTR seems unavoidable in real programs (or MJIT), so maybe it's not worth dealing with. r64353 relies on POSIX timers to signal. Switching pipes and sockets to non-blocking by default would let us get rid of POSIX timers, timer pthread and this hack: https://bugs.ruby-lang.org/issues/14968 [ruby-core:88360] [Misc #14937] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64355 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/fiddle/test_function.rb')
-rw-r--r--test/fiddle/test_function.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/fiddle/test_function.rb b/test/fiddle/test_function.rb
index b799fb874a..12a6425ff7 100644
--- a/test/fiddle/test_function.rb
+++ b/test/fiddle/test_function.rb
@@ -73,6 +73,12 @@ module Fiddle
end
def test_nogvl_poll
+ # XXX hack to quiet down CI errors on EINTR from r64353
+ # [ruby-core:88360] [Misc #14937]
+ # Making pipes (and sockets) non-blocking by default would allow
+ # us to get rid of POSIX timers / timer pthread
+ # https://bugs.ruby-lang.org/issues/14968
+ IO.pipe { |r,w| IO.select([r], [w]) }
begin
poll = @libc['poll']
rescue Fiddle::DLError