summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/ruby/test_process.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb
index cb9440c836..3c1b78fd54 100644
--- a/test/ruby/test_process.rb
+++ b/test/ruby/test_process.rb
@@ -2048,6 +2048,7 @@ EOS
a[1].write('.')
assert_equal ".", b[0].read(1)
ensure
+ Process.wait(pid) if pid
a.each(&:close) if a
b.each(&:close) if b
end