ruby-changes:11405
From: nobu <ko1@a...>
Date: Sat, 21 Mar 2009 08:52:48 +0900 (JST)
Subject: [ruby-changes:11405] Ruby:r23027 (trunk): * test/ruby/test_process.rb (test_popen_shell): test for .
nobu 2009-03-21 08:52:43 +0900 (Sat, 21 Mar 2009) New Revision: 23027 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=23027 Log: * test/ruby/test_process.rb (test_popen_shell): test for [ruby-core:22960]. Modified files: trunk/test/ruby/test_process.rb Index: test/ruby/test_process.rb =================================================================== --- test/ruby/test_process.rb (revision 23026) +++ test/ruby/test_process.rb (revision 23027) @@ -868,6 +868,13 @@ 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/