aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/openssl/test_config.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/openssl/test_config.rb b/test/openssl/test_config.rb
index 604ccaa639..88bb5af7be 100644
--- a/test/openssl/test_config.rb
+++ b/test/openssl/test_config.rb
@@ -21,11 +21,11 @@ __EOD__
end
def test_constants
- skip "DEFAULT_CONFIG_FILE may return a wrong path on your platforms. [Bug #6830]" if /mswin|mingw|darwin/ =~ RUBY_PLATFORM
-
assert(defined?(OpenSSL::Config::DEFAULT_CONFIG_FILE))
+ config_file = OpenSSL::Config::DEFAULT_CONFIG_FILE
+ skip "DEFAULT_CONFIG_FILE may return a wrong path on your platforms. [Bug #6830]" unless File.readable?(config_file)
assert_nothing_raised do
- OpenSSL::Config.load(OpenSSL::Config::DEFAULT_CONFIG_FILE)
+ OpenSSL::Config.load(config_file)
end
end