ruby-changes:15649
From: nobu <ko1@a...>
Date: Fri, 30 Apr 2010 21:40:59 +0900 (JST)
Subject: [ruby-changes:15649] Ruby:r27565 (trunk): * test/test_open3.rb (TestOpen3#test_commandline): use simple
nobu 2010-04-30 21:40:40 +0900 (Fri, 30 Apr 2010) New Revision: 27565 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=27565 Log: * test/test_open3.rb (TestOpen3#test_commandline): use simple command via shell. [ruby-dev:41100] Modified files: trunk/ChangeLog trunk/test/test_open3.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 27564) +++ ChangeLog (revision 27565) @@ -1,3 +1,8 @@ +Fri Apr 30 21:40:36 2010 Nobuyoshi Nakada <nobu@r...> + + * 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@f...> * file.c (file_expand_path): call rb_str_set_len before BUFCHECK to Index: test/test_open3.rb =================================================================== --- test/test_open3.rb (revision 27564) +++ test/test_open3.rb (revision 27565) @@ -59,9 +59,9 @@ 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/