Skip to content

Commit ea5f8e1

Browse files
committed
Magical wait to get rid of deadlock on macOS
1 parent 416a820 commit ea5f8e1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/ruby/test_process.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,10 @@ def test_execopts_redirect_open_fifo_interrupt_print
715715
sleep 0.2 # wait for the child to stop at opening "fifo"
716716
Process.kill(:USR1, io.pid)
717717
assert_equal("trap\n", io.readpartial(8))
718+
sleep 0.2 # wait for the child to return to opening "fifo".
719+
# On arm64-darwin22, often deadlocks while the child is
720+
# opening "fifo". Not sure to where "ok" line being written
721+
# at the next has gone.
718722
File.write("fifo", "ok\n")
719723
assert_equal("ok\n", io.read)
720724
}

0 commit comments

Comments
 (0)