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:
parent
f53548a86c
commit
052dbbe74f
1 changed files with 5 additions and 3 deletions
|
@ -85,9 +85,11 @@ describe :io_write, shared: true do
|
||||||
@r.read.should == "foo"
|
@r.read.should == "foo"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
without_feature :mjit do # [ruby-core:90895] MJIT worker may leave fd open in a forked child. TODO: consider acquiring GVL from MJIT worker.
|
||||||
it "raises Errno::EPIPE if the read end is closed and does not die from SIGPIPE" do
|
it "raises Errno::EPIPE if the read end is closed and does not die from SIGPIPE" do
|
||||||
@r.close
|
@r.close
|
||||||
-> { @w.send(@method, "foo") }.should raise_error(Errno::EPIPE, /Broken pipe/)
|
-> { @w.send(@method, "foo") }.should raise_error(Errno::EPIPE, /Broken pipe/)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
Loading…
Reference in a new issue