summaryrefslogtreecommitdiff
path: root/test/ruby/test_process.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_process.rb')
-rw-r--r--test/ruby/test_process.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb
index e68f1070e6..36cc5d14a7 100644
--- a/test/ruby/test_process.rb
+++ b/test/ruby/test_process.rb
@@ -500,6 +500,21 @@ class TestProcess < Test::Unit::TestCase
}
end
+ def test_execopts_modification
+ h = {}
+ Process.wait spawn(EnvUtil.rubybin, '-e', '', h)
+ assert_equal({}, h)
+
+ h = {}
+ system(EnvUtil.rubybin, '-e', '', h)
+ assert_equal({}, h)
+
+ h = {}
+ io = IO.popen([EnvUtil.rubybin, '-e', '', h])
+ io.close
+ assert_equal({}, h)
+ end
+
def test_system
str = "echo fofo"
assert_nil(system([str, str]))