Fix test broken by disabled SSLv3 in OpenSSL.
This commit is contained in:
parent
d954989b45
commit
693a96cb40
4 changed files with 69 additions and 5 deletions
13
ruby.spec
13
ruby.spec
|
|
@ -117,6 +117,11 @@ Patch7: ruby-2.2.1-use-statfs.patch
|
|||
# https://github.com/rubygems/rubygems/issues/1289
|
||||
# https://github.com/ruby/ruby/commit/6398515adfc86813686605019a3e22d49cd95517
|
||||
Patch8: ruby-2.3.0-test_gem_remote_fetcher.rb-get-rid-of-errors.patch
|
||||
# Don't use SSLv3 for tests.
|
||||
# https://bugs.ruby-lang.org/issues/10046
|
||||
Patch9: ruby-2.3.0-fix-test-ctx-client-session-cb.patch
|
||||
Patch10: ruby-2.3.0-Don-t-force-SSLv3-in-test-as-it-is-insecure-and-may-.patch
|
||||
Patch11: ruby-2.3.0-Use-OP_NO_TICKET-when-testing-SSL-session-cache-call.patch
|
||||
|
||||
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
||||
Requires: ruby(rubygems) >= %{rubygems_version}
|
||||
|
|
@ -419,6 +424,9 @@ rm -rf ext/fiddle/libffi*
|
|||
%patch6 -p1
|
||||
%patch7 -p1
|
||||
%patch8 -p1
|
||||
%patch9
|
||||
%patch10
|
||||
%patch11
|
||||
|
||||
# Provide an example of usage of the tapset:
|
||||
cp -a %{SOURCE3} .
|
||||
|
|
@ -602,11 +610,6 @@ DISABLE_TESTS=""
|
|||
# the test suite).
|
||||
touch abrt.rb
|
||||
|
||||
# Test is broken due to SSLv3 disabled in Fedora.
|
||||
# https://bugs.ruby-lang.org/issues/10046
|
||||
sed -i '/def test_ctx_client_session_cb$/,/^ end$/ s/^/#/' test/openssl/test_ssl_session.rb
|
||||
sed -i '/def test_ctx_server_session_cb$/,/^ end$/ s/^/#/' test/openssl/test_ssl_session.rb
|
||||
|
||||
make check TESTS="-v $DISABLE_TESTS"
|
||||
|
||||
%post libs -p /sbin/ldconfig
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue