Skip to content

Commit

Permalink
Magical wait to get rid of deadlock on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Sep 22, 2023
1 parent 416a820 commit ea5f8e1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/ruby/test_process.rb
Expand Up @@ -715,6 +715,10 @@ def test_execopts_redirect_open_fifo_interrupt_print
sleep 0.2 # wait for the child to stop at opening "fifo"
Process.kill(:USR1, io.pid)
assert_equal("trap\n", io.readpartial(8))
sleep 0.2 # wait for the child to return to opening "fifo".
# On arm64-darwin22, often deadlocks while the child is
# opening "fifo". Not sure to where "ok" line being written
# at the next has gone.
File.write("fifo", "ok\n")
assert_equal("ok\n", io.read)
}
Expand Down

0 comments on commit ea5f8e1

Please sign in to comment.