summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-12 12:44:26 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-12 12:44:26 +0000
commit94b275c5b37cb84f5140c27b2428581499d6a29c (patch)
treedb9c1c91f7d03298499e7d8d2812394df9a6c2f3
parent640e0a33b7a198be030b4080e32404a319f4c468 (diff)
add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--test/ruby/test_process.rb6
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