From 94b275c5b37cb84f5140c27b2428581499d6a29c Mon Sep 17 00:00:00 2001 From: akr Date: Tue, 12 Jun 2012 12:44:26 +0000 Subject: [PATCH] add a test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_process.rb | 6 ++++++ 1 file changed, 6 insertions(+) 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