summaryrefslogtreecommitdiff
path: root/test/openssl/test_x509name.rb
diff options
context:
space:
mode:
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 85cc5ca2f96..0fbe2c2569d 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