diff options
Diffstat (limited to 'test/ruby/test_process.rb')
-rw-r--r-- | test/ruby/test_process.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index 5c05a47af5..a731dee99d 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -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 |