mirror of
https://github.com/ruby/ruby.git
synced 2025-08-27 23:16:42 +02:00
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:
parent
481292190f
commit
46062034a0
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue