aboutsummaryrefslogtreecommitdiffstats
path: root/test/openssl/test_x509name.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_x509name.rb
parentd3ba99c15f6e787957c24dedd8796b68e60739c2 (diff)
downloadruby-6988d86035f8063bd3c1228573523ed700405cf5.tar.gz
* 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_x509name.rb')
-rw-r--r--test/openssl/test_x509name.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/openssl/test_x509name.rb b/test/openssl/test_x509name.rb
index 85cc5ca2f9..0fbe2c2569 100644
--- a/test/openssl/test_x509name.rb
+++ b/test/openssl/test_x509name.rb
@@ -1,6 +1,11 @@
-require "openssl"
+begin
+ require "openssl"
+rescue LoadError
+end
require "test/unit"
+if defined?(OpenSSL)
+
class OpenSSL::TestX509Name < Test::Unit::TestCase
def setup
@obj_type_tmpl = Hash.new(OpenSSL::ASN1::PRINTABLESTRING)
@@ -153,3 +158,5 @@ class OpenSSL::TestX509Name < Test::Unit::TestCase
assert_equal(OpenSSL::ASN1::PRINTABLESTRING, ary[4][2])
end
end
+
+end