From 1e94f2f4f64fc1643d5a94c9a520d89cd4904f32 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 20 Mar 2009 23:52:43 +0000 Subject: [PATCH] * test/ruby/test_process.rb (test_popen_shell): test for [ruby-core:22960]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_process.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index df06d26e52..57084f6f84 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -868,6 +868,13 @@ class TestProcess < Test::Unit::TestCase assert(!status.success?) assert_match(/\Atako pid=\d+ ppid=\d+\ntika pid=\d+ ppid=\d+\n\z/, result) assert_not_equal(result[/\d+/].to_i, status.pid) + + if /mswin|bccwin|mingw/ =~ RUBY_PLATFORM + Dir.mkdir(path = "path with space") + write_file(bat = path + "/battest.bat", "@echo %1") + r = IO.popen([bat, "foo 'bar'"]) {|f| f.read} + assert_equal(%["foo 'bar'"\n], r, '[ruby-core:22960]') + end } end