diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-05-02 22:40:43 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-05-02 22:40:43 +0900 |
commit | 5dfeffc614b62e42496b8e67dbc4ff08f7ea137c (patch) | |
tree | d6d134b3f7407f242e1aa11aa0012234c3ccba8f /test | |
parent | 31774bd56506c49823c0b77a2ab025775e64ff26 (diff) |
Allow EPIPE when the child process has exited before interrupt
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_process.rb | 2 |
1 files changed, 2 insertions, 0 deletions
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 |