diff options
author | seki <seki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-03-13 05:41:25 +0000 |
---|---|---|
committer | seki <seki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-03-13 05:41:25 +0000 |
commit | 74d5bc6603cdca9de12c3e9e8afe4971f89c1040 (patch) | |
tree | b97985ca70d3ecfa315e7094ba8d2b83273ebc68 /test/drb | |
parent | 4c99df418063b02efbd2a6293bab0265eeb37f72 (diff) |
rescue LoadError.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/drb')
-rw-r--r-- | test/drb/test_drbssl.rb | 13 | ||||
-rw-r--r-- | test/drb/test_drbunix.rb | 13 |
2 files changed, 22 insertions, 4 deletions
diff --git a/test/drb/test_drbssl.rb b/test/drb/test_drbssl.rb index 0ca177fe58..b5dd68f6a7 100644 --- a/test/drb/test_drbssl.rb +++ b/test/drb/test_drbssl.rb @@ -1,6 +1,12 @@ -$:.unshift(File.dirname(File.expand_path(__FILE__))) require 'drbtest' -require 'drb/ssl' + +begin + require 'drb/ssl' +rescue LoadError +end + +if Object.const_defined?("OpenSSL") + class DRbSSLService < DRbService %w(ut_drb_drbssl.rb ut_array_drbssl.rb).each do |nm| @@ -63,3 +69,6 @@ class TestDRbSSLAry < Test::Unit::TestCase @there = @ext.front end end + + +end diff --git a/test/drb/test_drbunix.rb b/test/drb/test_drbunix.rb index e05637a2b7..e35a7bd580 100644 --- a/test/drb/test_drbunix.rb +++ b/test/drb/test_drbunix.rb @@ -1,6 +1,12 @@ -$:.unshift(File.dirname(File.expand_path(__FILE__))) require 'drbtest' -require 'drb/unix' + +begin + require 'drb/unix' +rescue LoadError +end + +if Object.const_defined?("UNIXServer") + class DRbUNIXService < DRbService %w(ut_drb_drbunix.rb ut_array_drbunix.rb).each do |nm| @@ -46,3 +52,6 @@ class TestDRbUNIXAry < Test::Unit::TestCase @there = @ext.front end end + + +end |