Issue #7400 has been updated by Hiroshi SHIBATA.
```
[1/8] TestCertificate#test_cert_extensions = 4.90 s
1) Failure:
TestCertificate#test_cert_extensions [/ruby/path/test/openssl/test_certificate.rb:72]:
<"keyid:80:14:24:D1:34:18:66:91:2A:63:76:AA:19:CE:17:20:56:56:5E:10:8F:AA"> expected but was
<"keyid:24:D1:34:18:66:91:2A:63:76:AA:19:CE:17:20:56:56:5E:10:8F:AA\nDirName:/C=JP/O=ctor.org/OU=Development/CN=http-access2\nserial:01\n">.
2) Failure:
TestCertificate#test_cert_extensions [./test/runner.rb:24]:
Expected [[57245, #<Process::Status: pid 57245 exit 0>],
[57250, #<Process::Status: pid 57250 exit 0>]] to be empty.
[7/8] TestCertificate#test_to_pem_with_empty_object = 0.00 s
3) Failure:
TestCertificate#test_to_pem_with_empty_object [/ruby/path/test/openssl/test_certificate.rb:101]:
<"MAA="> expected but was
<"MBQwDQYJKoZIhvcNAQEBBQADAwAwAA==">.
```
I applied this patch and run it. but some test results is fail.
Charles,
Could you investigate this?
----------------------------------------
Feature #7400: Incorporate OpenSSL tests from JRuby.
https://bugs.ruby-lang.org/issues/7400#change-46907
* Author: Zachary Scott
* Status: Assigned
* Priority: Low
* Assignee: Martin Bosslet
* Category: ext
* Target version: current: 2.2.0
----------------------------------------
=begin
from github: https://github.com/ruby/ruby/pull/206
((*These are tests we added to jruby-openssl over the years. They did not have equivalents in Ruby's test suite, so we are hoping to contribute them back to help build up MRI's suite as a common suite.*))
((*Some caveats:*))
* ((*Not all of these pass in MRI's OpenSSL impl. Many differences appear to be minor, but I need help sorting out what's wrong in MRI or JRuby or minor enough that the test just needs to be patched.*))
* ((*There are several tests that reference bug numbers from JRuby. We would like to contribute these tests, but we would ideally not lose the JRuby bug numbers for future reference.*))
* ((*This commit also adds fixtures for the certificate tests, using some self-generated certs, keys, etc.*))
((*I am standing by to work with ruby-core on getting these tests incorporated.*))
=end
---Files--------------------------------
openssl_tests_from_jruby.patch (245 KB)
--
https://bugs.ruby-lang.org/