summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-05-12 04:59:01 +0000
committerocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-05-12 04:59:01 +0000
commit7cd6dda8e44b2f04364f4c968d115e74addbe759 (patch)
tree4f391ba71371e79684e05ee004def7bbe8ee218f /test
parent594def33fc7ff20e4f1af650a4748adc666f17d1 (diff)
* test/drb/test_drb{ssl,unix}.rb: can test drb
before install. (backported from HEAD) [ruby-dev:26146] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/drb/test_drbssl.rb4
-rw-r--r--test/drb/test_drbunix.rb4
2 files changed, 4 insertions, 4 deletions
diff --git a/test/drb/test_drbssl.rb b/test/drb/test_drbssl.rb
index b68eb12..cfb3bc3 100644
--- a/test/drb/test_drbssl.rb
+++ b/test/drb/test_drbssl.rb
@@ -10,7 +10,7 @@ if Object.const_defined?("OpenSSL")
class DRbSSLService < DRbService
%w(ut_drb_drbssl.rb ut_array_drbssl.rb).each do |nm|
- DRb::ExtServManager.command[nm] = "#{@@ruby} #{@@dir}/#{nm}"
+ add_service_command(nm)
end
config = Hash.new
@@ -30,7 +30,7 @@ class DRbSSLService < DRbService
end
uri = ARGV.shift if $0 == __FILE__
- @server = DRb::DRbServer.new(uri || 'drbssl://:0', @@manager, config)
+ @server = DRb::DRbServer.new(uri || 'drbssl://:0', self.manager, config)
end
class TestDRbSSLCore < Test::Unit::TestCase
diff --git a/test/drb/test_drbunix.rb b/test/drb/test_drbunix.rb
index 79747ae..e1a17ed 100644
--- a/test/drb/test_drbunix.rb
+++ b/test/drb/test_drbunix.rb
@@ -10,11 +10,11 @@ if Object.const_defined?("UNIXServer")
class DRbUNIXService < DRbService
%w(ut_drb_drbunix.rb ut_array_drbunix.rb).each do |nm|
- DRb::ExtServManager.command[nm] = "#{@@ruby} #{@@dir}/#{nm}"
+ add_service_command(nm)
end
uri = ARGV.shift if $0 == __FILE__
- @server = DRb::DRbServer.new(uri || 'drbunix:', @@manager, {})
+ @server = DRb::DRbServer.new(uri || 'drbunix:', self.manager, {})
end
class TestDRbUNIXCore < Test::Unit::TestCase