aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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