mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
640e0a33b7
commit
94b275c5b3
1 changed files with 6 additions and 0 deletions
|
@ -1433,6 +1433,12 @@ class TestProcess < Test::Unit::TestCase
|
||||||
}
|
}
|
||||||
end
|
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
|
def test_sh_env
|
||||||
IO.popen("foofoo=barbar env") {|f|
|
IO.popen("foofoo=barbar env") {|f|
|
||||||
lines = f.readlines
|
lines = f.readlines
|
||||||
|
|
Loading…
Add table
Reference in a new issue