Quarantine a very flaky spec

https://github.com/ruby/ruby/actions/runs/5956398507/job/16157091112

This has been extremely flaky on macOS GitHub Actions.
Benoit suggested to quarantine it if it's too problematic (it is) and
there's no reasonable fix in a short time (it already took too long).
So this commit follows the suggestion.

We should remove revert this once rb_cloexec_open() is fixed.
This commit is contained in:
Takashi Kokubun 2023-08-23 14:30:20 -07:00
parent 43c2c1ed48
commit d7f1ea7155

View File

@ -203,15 +203,19 @@ describe "IO.write" do
rm_r @fifo
end
it "writes correctly" do
thr = Thread.new do
IO.read(@fifo)
end
begin
string = "hi"
IO.write(@fifo, string).should == string.length
ensure
thr.join
# rb_cloexec_open() is currently missing a retry on EINTR.
# @ioquatix is looking into fixing it. Quarantined until it's done.
quarantine! do
it "writes correctly" do
thr = Thread.new do
IO.read(@fifo)
end
begin
string = "hi"
IO.write(@fifo, string).should == string.length
ensure
thr.join
end
end
end
end