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 b3ecc420ed..943ffc77d7 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -1433,4 +1433,11 @@ class TestProcess < Test::Unit::TestCase } end + def test_sh_env + IO.popen("foofoo=barbar env") {|f| + lines = f.readlines + assert_operator(lines, :include?, "foofoo=barbar\n") + } + end if File.executable?("/bin/sh") + end |