diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-06-12 12:44:26 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-06-12 12:44:26 +0000 |
commit | 94b275c5b37cb84f5140c27b2428581499d6a29c (patch) | |
tree | db9c1c91f7d03298499e7d8d2812394df9a6c2f3 /test | |
parent | 640e0a33b7a198be030b4080e32404a319f4c468 (diff) | |
download | ruby-94b275c5b37cb84f5140c27b2428581499d6a29c.tar.gz |
add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_process.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index 943ffc77d7..762036a163 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -1433,6 +1433,12 @@ class TestProcess < Test::Unit::TestCase } end + def test_sh_comment + IO.popen("echo a # fofoof") {|f| + assert_equal("a\n", f.read) + } + end if File.executable?("/bin/sh") + def test_sh_env IO.popen("foofoo=barbar env") {|f| lines = f.readlines |