From e955cff06ce266f90c32c73bc244dda3924c66e4 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 30 Apr 2010 12:40:40 +0000 Subject: * 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 --- test/test_open3.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/test_open3.rb') diff --git a/test/test_open3.rb b/test/test_open3.rb index 24b82e7ec9..a0586622c1 100644 --- a/test/test_open3.rb +++ b/test/test_open3.rb @@ -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 -- cgit v1.2.3