aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-30 12:40:40 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-30 12:40:40 +0000
commite955cff06ce266f90c32c73bc244dda3924c66e4 (patch)
tree2eae38f1a4ac0c82823d9e337f83c17591f3213a
parent5d639de5d3acd7032d13b0874bc0920714401571 (diff)
downloadruby-e955cff06ce266f90c32c73bc244dda3924c66e4.tar.gz
* 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
-rw-r--r--ChangeLog5
-rw-r--r--test/test_open3.rb4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index d9a1fd8f11..d158a7f34b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
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