1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/drb/drbtest.rb (DRbService.add_service_command): quotes

rubybin only, not including -d.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-12-23 01:31:37 +00:00
parent 0c4003dad7
commit 911e78c8b6

View file

@ -2,6 +2,7 @@ require 'test/unit'
require 'drb/drb'
require 'drb/extservm'
require 'timeout'
require 'shellwords'
begin
loadpath = $:.dup
$:.replace($: | [File.expand_path("../ruby", File.dirname(__FILE__))])
@ -12,11 +13,11 @@ end
class DRbService
@@manager = DRb::ExtServManager.new
@@ruby = EnvUtil.rubybin
@@ruby = Shellwords.escape(EnvUtil.rubybin)
@@ruby += " -d" if $DEBUG
def self.add_service_command(nm)
dir = File.dirname(File.expand_path(__FILE__))
DRb::ExtServManager.command[nm] = "\"#{@@ruby}\" \"#{dir}/#{nm}\""
DRb::ExtServManager.command[nm] = "#{@@ruby} \"#{dir}/#{nm}\""
end
%w(ut_drb.rb ut_array.rb ut_port.rb ut_large.rb ut_safe1.rb ut_eval.rb).each do |nm|
@ -98,7 +99,7 @@ module DRbCore
assert_equal(6, @there.sample(onecky, 1, 2))
ary = @there.to_a
assert_kind_of(DRb::DRbObject, ary)
assert(@there.respond_to?(:to_a, true))
assert(@there.respond_to?(:eval, true))
assert(! @there.respond_to?(:eval, false))