summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-05-02 22:40:43 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-05-02 22:40:43 +0900
commit5dfeffc614b62e42496b8e67dbc4ff08f7ea137c (patch)
treed6d134b3f7407f242e1aa11aa0012234c3ccba8f /test
parent31774bd56506c49823c0b77a2ab025775e64ff26 (diff)
downloadruby-5dfeffc614b62e42496b8e67dbc4ff08f7ea137c.tar.gz
Allow EPIPE when the child process has exited before interrupt
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_process.rb2
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