From: Hiroshi NAKAMURA Date: 2011-06-20T11:03:45+09:00 Subject: [ruby-core:37230] [Ruby 1.9 - Bug #4679] openssl test failure on 1.9.2p204 on Windows/mingw Issue #4679 has been updated by Hiroshi NAKAMURA. Assignee changed from Hiroshi NAKAMURA to Yuki Sonoda Priority changed from Normal to Low I found that unak already covered this issue. Index: ChangeLog =================================================================== --- ChangeLog (revision 29992) +++ ChangeLog (revision 29993) @@ -1,3 +1,8 @@ +Wed Dec 1 15:08:32 2010 NAKAMURA Usaku + + * test/openssl/test_ssl.rb (test_not_started_session): non socket + argument of SSLSocket.new is not supported on Windows. + Wed Dec 1 14:36:36 2010 Nobuyoshi Nakada * string.c (rb_memhash): zero-filled strings should return Index: test/openssl/test_ssl.rb =================================================================== --- test/openssl/test_ssl.rb (revision 29992) +++ test/openssl/test_ssl.rb (revision 29993) @@ -161,6 +161,7 @@ end def test_not_started_session + skip "non socket argument of SSLSocket.new is not supported on this platform" if /mswin|mingw/ =~ RUBY_PLATFORM open(__FILE__) do |f| assert_nil OpenSSL::SSL::SSLSocket.new(f).cert end Yugui-san, please apply this to ruby_1_9_2. ---------------------------------------- Bug #4679: openssl test failure on 1.9.2p204 on Windows/mingw http://redmine.ruby-lang.org/issues/4679 Author: Jon Forums Status: Assigned Priority: Low Assignee: Yuki Sonoda Category: test Target version: 1.9.2 ruby -v: ruby 1.9.2p204 (2011-05-12 revision 31519) [i386-mingw32] While testing 1.9.2 backports on a Win7 32-bit build of ruby_1_9_2 using the RubyInstaller build recipes, the following openssl test failure occurs. I can't replicate the failure on Win7 or Arch using trunk@31534. I will try to replicate with Arch using ruby_1_9_2 and report back if relevant. FYI, running "make test" completes without errors. irb(main):001:0> require 'openssl' irb(main):002:0> OpenSSL::OPENSSL_VERSION => "OpenSSL 1.0.0d 8 Feb 2011" sh-3.1$ gcc --version gcc.exe (tdm-1) 4.5.2 sh-3.1$ ruby --version ruby 1.9.2p204 (2011-05-12 revision 31519) [i386-mingw32] sh-3.1$ make test-all TESTS=openssl ./miniruby.exe -I../../../../Users/Jon/Documents/RubyDev/ruby-git/lib -I.ext/common -I./- -r../../../../Users/Jon/Documents/RubyDev/ruby-git/ext/purelib.rb ../../../../Users/Jon/D ocuments/RubyDev/ruby-git/tool/runruby.rb --extout=.ext -- "../../../../Users/Jon/Documen ts/RubyDev/ruby-git/test/runner.rb" openssl Loaded suite ../../../../Users/Jon/Documents/RubyDev/ruby-git/test/runner Started ............S..............................................E.............................. .. Finished in 9.998572 seconds. 1) Skipped: test_freeze(OpenSSL::TestConfig) [c:/Users/Jon/Documents/RubyDev/ruby-git/test/openssl/tes t_config.rb:6]: need an argument for OpenSSL::Config.new on Windows 2) Error: test_not_started_session(OpenSSL::TestSSL): Errno::EBADF: Bad file descriptor - c:/Users/Jon/Documents/RubyDev/ruby-git/test/openssl/t est_ssl.rb c:/projects/rubyinstaller-git/sandbox/ruby19_build/.ext/common/openssl/ssl-internal.rb :82:in `fcntl' c:/projects/rubyinstaller-git/sandbox/ruby19_build/.ext/common/openssl/ssl-internal.rb :82:in `initialize' c:/Users/Jon/Documents/RubyDev/ruby-git/test/openssl/test_ssl.rb:165:in `initialize' c:/Users/Jon/Documents/RubyDev/ruby-git/test/openssl/test_ssl.rb:165:in `new' c:/Users/Jon/Documents/RubyDev/ruby-git/test/openssl/test_ssl.rb:165:in `block in test _not_started_session' c:/Users/Jon/Documents/RubyDev/ruby-git/test/openssl/test_ssl.rb:164:in `open' c:/Users/Jon/Documents/RubyDev/ruby-git/test/openssl/test_ssl.rb:164:in `test_not_star ted_session' 92 tests, 1272 assertions, 0 failures, 1 errors, 1 skips -- http://redmine.ruby-lang.org