diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-10-06 14:26:29 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-10-06 14:26:29 +0000 |
commit | 974e3c9c5d15af79a7992a55fb37b07ee0a7532f (patch) | |
tree | 447771c96b7bf96e2bade76a57c7318db71453ad | |
parent | 0751c5d16d983ae9541bdbfb109d4b310ee162d9 (diff) | |
download | ruby-974e3c9c5d15af79a7992a55fb37b07ee0a7532f.tar.gz |
* 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
-rw-r--r-- | test/openssl/test_config.rb | 6 |
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 |