mirror of
https://github.com/ruby/ruby.git
synced 2025-09-19 18:43:59 +02:00
add test for close-on-exec.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
df6a0fe8bb
commit
88f1b8cf0c
5 changed files with 94 additions and 0 deletions
|
@ -1323,4 +1323,11 @@ class TestProcess < Test::Unit::TestCase
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
def test_popen_cloexec
|
||||
return unless defined? Fcntl::FD_CLOEXEC
|
||||
IO.popen([RUBY, "-e", ""]) {|io|
|
||||
assert(io.close_on_exec?)
|
||||
}
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue