1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/test_open3.rb (TestOpen3#test_commandline): use simple

command via shell.  [ruby-dev:41100]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2010-04-30 12:40:40 +00:00
parent 5d639de5d3
commit e955cff06c
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
Fri Apr 30 21:40:36 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* test/test_open3.rb (TestOpen3#test_commandline): use simple
command via shell. [ruby-dev:41100]
Fri Apr 30 12:05:20 2010 Tanaka Akira <akr@fsij.org>
* file.c (file_expand_path): call rb_str_set_len before BUFCHECK to

View file

@ -59,9 +59,9 @@ class TestOpen3 < Test::Unit::TestCase
end
def test_commandline
commandline = [RUBY, '-e', 'print :quux'].map{|s|/\s/=~s ? s.dump : s}.join(' ')
commandline = "echo quux\n"
Open3.popen3(commandline) {|i,o,e,t|
assert_equal("quux", o.read)
assert_equal("quux\n", o.read)
}
end