mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 04:24:23 +00:00
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:
parent
43c2c1ed48
commit
d7f1ea7155
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user