summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-19 09:17:23 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-19 09:17:23 +0000
commit9f473df72a2f46f2f30c9995af4c2fa14265eb6a (patch)
tree68de751f5b20c41270dc3029a41334917f531283 /test
parentb0f623f5f418fed481c3634b6a3d1a0f508c888d (diff)
test_pty.rb: reap zombie
* test/test_pty.rb (test_cloexec): reap zombie than leaving to detaching thread. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/test_pty.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test_pty.rb b/test/test_pty.rb
index 0b05c62477..b6ce684509 100644
--- a/test/test_pty.rb
+++ b/test/test_pty.rb
@@ -211,6 +211,7 @@ class TestPTY < Test::Unit::TestCase
PTY.spawn(RUBY, '-e', '') {|r, w, pid|
assert(r.close_on_exec?)
assert(w.close_on_exec?)
+ Process.wait(pid)
}
rescue RuntimeError
skip $!