ruby-changes:54919
From: k0kubun <ko1@a...>
Date: Sat, 23 Feb 2019 11:18:00 +0900 (JST)
Subject: [ruby-changes:54919] k0kubun:r67124 (trunk): spec/../shared/write.rb: suppress random failure
k0kubun 2019-02-23 11:17:54 +0900 (Sat, 23 Feb 2019) New Revision: 67124 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=67124 Log: spec/../shared/write.rb: suppress random failure due to MJIT worker's known race condition. Modified files: trunk/spec/ruby/core/io/shared/write.rb Index: spec/ruby/core/io/shared/write.rb =================================================================== --- spec/ruby/core/io/shared/write.rb (revision 67123) +++ spec/ruby/core/io/shared/write.rb (revision 67124) @@ -85,9 +85,11 @@ describe :io_write, shared: true do https://github.com/ruby/ruby/blob/trunk/spec/ruby/core/io/shared/write.rb#L85 @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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/