diff options
author | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-02-23 02:17:54 +0000 |
---|---|---|
committer | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-02-23 02:17:54 +0000 |
commit | 052dbbe74f00733b96841fc8fbe7bdefadf0440e (patch) | |
tree | 024b081dde391d33a38119b00b84e292cb8e32f4 /spec | |
parent | f53548a86cec0ebe147c6ee4484fd8ccf0f42c79 (diff) | |
download | ruby-052dbbe74f00733b96841fc8fbe7bdefadf0440e.tar.gz |
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
Diffstat (limited to 'spec')
-rw-r--r-- | spec/ruby/core/io/shared/write.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/spec/ruby/core/io/shared/write.rb b/spec/ruby/core/io/shared/write.rb index 140eeb04ab..3cd4f8954e 100644 --- a/spec/ruby/core/io/shared/write.rb +++ b/spec/ruby/core/io/shared/write.rb @@ -85,9 +85,11 @@ describe :io_write, shared: true do @r.read.should == "foo" end - it "raises Errno::EPIPE if the read end is closed and does not die from SIGPIPE" do - @r.close - -> { @w.send(@method, "foo") }.should raise_error(Errno::EPIPE, /Broken pipe/) + 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 + @r.close + -> { @w.send(@method, "foo") }.should raise_error(Errno::EPIPE, /Broken pipe/) + end end end end |