summaryrefslogtreecommitdiff
path: root/test/ruby/test_process.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-05 02:03:11 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-05 02:03:11 +0000
commit46062034a0110c554b2f429ef7e85f22746ca068 (patch)
treee3e2ae8c7995d3ca351645c2a3cd3cd1081f79e5 /test/ruby/test_process.rb
parent481292190fa34536d510e2140647d07339a4df72 (diff)
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
Diffstat (limited to 'test/ruby/test_process.rb')
-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