1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
nobu 2013-06-19 09:17:23 +00:00
parent b0f623f5f4
commit 9f473df72a

View file

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