mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
0751c5d16d
commit
974e3c9c5d
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue