test_process.rb: reap pid

* test/ruby/test_process.rb (test_exec_fd_3_redirect): should reap
  the grandchild process, in common.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2015-07-05 02:03:11 +00:00
parent 481292190f
commit 46062034a0

View file

@ -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