1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

spec/../shared/write.rb: suppress random failure

due to MJIT worker's known race condition.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
k0kubun 2019-02-23 02:17:54 +00:00
parent f53548a86c
commit 052dbbe74f

View file

@ -85,9 +85,11 @@ describe :io_write, shared: true do
@r.read.should == "foo" @r.read.should == "foo"
end end
it "raises Errno::EPIPE if the read end is closed and does not die from SIGPIPE" do without_feature :mjit do # [ruby-core:90895] MJIT worker may leave fd open in a forked child. TODO: consider acquiring GVL from MJIT worker.
@r.close it "raises Errno::EPIPE if the read end is closed and does not die from SIGPIPE" do
-> { @w.send(@method, "foo") }.should raise_error(Errno::EPIPE, /Broken pipe/) @r.close
-> { @w.send(@method, "foo") }.should raise_error(Errno::EPIPE, /Broken pipe/)
end
end end
end end
end end