From 974e3c9c5d15af79a7992a55fb37b07ee0a7532f Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 6 Oct 2012 14:26:29 +0000 Subject: [PATCH] * test/openssl/test_config.rb (OpenSSL#test_constants): skip only when DEFAULT_CONFIG_FILE does not exist. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/openssl/test_config.rb | 6 +++--- 1 file 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