From: "usa (Usaku NAKAMURA)" Date: 2012-08-14T10:36:58+09:00 Subject: [ruby-core:47172] [ruby-trunk - Bug #6830][Assigned] test failure test_constants(OpenSSL::TestConfig) [/ruby/test/openssl/test_config.rb:27] on Mac + homebrew Issue #6830 has been updated by usa (Usaku NAKAMURA). Status changed from Feedback to Assigned Assignee changed from usa (Usaku NAKAMURA) to kosaki (Motohiro KOSAKI) (1) "is not a problem of platform but a hardcoded path on openssl." Yes, I think so, too. (2) "if you moved OpenSSL dlls to different directories and verified OpenSSL::Config::DEFAULT_CONFIG_FILE?" Of course, it fails. So, should not skip by platform, but should determine whether to skip or not to skip by another method, such as checking the existance of the config file, as luis said. ---------------------------------------- Bug #6830: test failure test_constants(OpenSSL::TestConfig) [/ruby/test/openssl/test_config.rb:27] on Mac + homebrew https://bugs.ruby-lang.org/issues/6830#change-28851 Author: kosaki (Motohiro KOSAKI) Status: Assigned Priority: Normal Assignee: kosaki (Motohiro KOSAKI) Category: ext Target version: 2.0.0 ruby -v: ruby 2.0.0dev (2012-08-04 trunk 36617) [x86_64-darwin12.0.0] When using homebrew openssl, following test failure was happen. 2) Failure: test_constants(OpenSSL::TestConfig) [/Users/kosaki/ruby/git/test/openssl/test_config.rb:27]: Exception raised: <#>. rough analysis. homebrew installed openssl library to "/usr/local/Cellar/openssl/1.0.1c". and following program output "/usr/local/openssl-1.0.1c". -------------------------- int main() { printf("%s\n", X509_get_default_cert_area()); return 0; } -------------------------- I'm using following configure options. configure \ �� �� --disable-install-doc \ �� �� --with-baseruby=/usr/bin/ruby \ �� �� --prefix=${HOME}/local/ruby-${suffix} \ �� �� --program-suffix=-${suffix} \ --with-openssl-dir=/usr/local/Cellar/openssl/1.0.1c So, I have several questions. 1) Is X509_get_default_cert_area() a right way to obtain configuration file? 2) If yes, is this homebrew bug? 3) if yes, should we skip this test when using Mac OS X? -- http://bugs.ruby-lang.org/