diff options
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_process.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index 57bfd78f7c..5d85ca3a18 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -1810,6 +1810,15 @@ class TestProcess < Test::Unit::TestCase end end + def test_popen_reopen + assert_separately([], "#{<<~"begin;"}\n#{<<~'end;'}") + begin; + io = File.open(IO::NULL) + IO.popen("echo") {|f| io.reopen(f)} + io.reopen(io.dup) + end; + end + def test_execopts_new_pgroup return unless windows? |
