From 5dfeffc614b62e42496b8e67dbc4ff08f7ea137c Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Tue, 2 May 2023 22:40:43 +0900 Subject: Allow EPIPE when the child process has exited before interrupt --- test/ruby/test_process.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test') diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index 8e617fb369..a259764041 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -1547,6 +1547,8 @@ class TestProcess < Test::Unit::TestCase assert_operator(diff, :<, sec, ->{"#{bug11340}: #{diff} seconds to interrupt Process.wait"}) f.puts + rescue Errno::EPIPE + omit "child process exited already in #{diff} seconds" end end -- cgit v1.2.1