summaryrefslogtreecommitdiff
path: root/test/openssl/test_x509crl.rb
diff options
context:
space:
mode:
authorgotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-05-19 18:30:52 +0000
committergotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-05-19 18:30:52 +0000
commit6988d86035f8063bd3c1228573523ed700405cf5 (patch)
treec8801428b25a29f30fd5b78aac93dc7fdd085b0e /test/openssl/test_x509crl.rb
parentd3ba99c15f6e787957c24dedd8796b68e60739c2 (diff)
* rescue LoadError. [ruby-dev:23539]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/openssl/test_x509crl.rb')
-rw-r--r--test/openssl/test_x509crl.rb11
1 files changed, 9 insertions, 2 deletions
diff --git a/test/openssl/test_x509crl.rb b/test/openssl/test_x509crl.rb
index 201a79e503..64d895f0f5 100644
--- a/test/openssl/test_x509crl.rb
+++ b/test/openssl/test_x509crl.rb
@@ -1,6 +1,11 @@
-require "openssl"
+begin
+ require "openssl"
+ require File.join(File.dirname(__FILE__), "utils.rb")
+rescue LoadError
+end
require "test/unit"
-require File.join(File.dirname(__FILE__), "utils.rb")
+
+if defined?(OpenSSL)
class OpenSSL::TestX509CRL < Test::Unit::TestCase
def setup
@@ -207,3 +212,5 @@ class OpenSSL::TestX509CRL < Test::Unit::TestCase
assert_equal(false, crl.verify(@dsa512))
end
end
+
+end