aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_open3.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-29 11:10:18 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-29 11:10:18 +0000
commit6c33ace12ca7c621cf5c4fa283c44c63777aec0d (patch)
tree17d2d6f9e9d4747e8683bd4b5103fe6ca1d748a7 /test/test_open3.rb
parentfb9e83685733715d0f55d7b9cc83d1eefb5eea78 (diff)
downloadruby-6c33ace12ca7c621cf5c4fa283c44c63777aec0d.tar.gz
* test/test_open3.rb (test_commandline): use dump instead of
shellwords. [ruby-core:23797] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/test_open3.rb')
-rw-r--r--test/test_open3.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/test_open3.rb b/test/test_open3.rb
index f8fb249559..24b82e7ec9 100644
--- a/test/test_open3.rb
+++ b/test/test_open3.rb
@@ -1,6 +1,5 @@
require 'test/unit'
require 'open3'
-require 'shellwords'
require_relative 'ruby/envutil'
class TestOpen3 < Test::Unit::TestCase
@@ -60,8 +59,7 @@ class TestOpen3 < Test::Unit::TestCase
end
def test_commandline
- skip "Shellwords is not supported" if /mswin|mingw/ =~ RUBY_PLATFORM
- commandline = Shellwords.join([RUBY, '-e', 'print "quux"'])
+ commandline = [RUBY, '-e', 'print :quux'].map{|s|/\s/=~s ? s.dump : s}.join(' ')
Open3.popen3(commandline) {|i,o,e,t|
assert_equal("quux", o.read)
}