diff options
author | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-05-19 18:30:52 +0000 |
---|---|---|
committer | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-05-19 18:30:52 +0000 |
commit | 72042f956f6958832eb3da22c0a66d6938a1e1be (patch) | |
tree | cf4a24b01e21d831bf56df2bdf11967ee9e84d82 /test/openssl/test_x509name.rb | |
parent | d0e37ac8c9a210069c2b9d8431ce018620a0cfa3 (diff) |
* rescue LoadError. [ruby-dev:23539]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/openssl/test_x509name.rb')
-rw-r--r-- | test/openssl/test_x509name.rb | 9 |
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 |