ruby-changes:23991
From: akr <ko1@a...>
Date: Tue, 12 Jun 2012 21:44:35 +0900 (JST)
Subject: [ruby-changes:23991] akr:r36042 (trunk): add a test.
akr 2012-06-12 21:44:26 +0900 (Tue, 12 Jun 2012) New Revision: 36042 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=36042 Log: add a test. Modified files: trunk/test/ruby/test_process.rb Index: test/ruby/test_process.rb =================================================================== --- test/ruby/test_process.rb (revision 36041) +++ test/ruby/test_process.rb (revision 36042) @@ -1433,6 +1433,12 @@ } 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/