Fix tests run by adding better algorithm

Resolves rhbz#210808
This commit is contained in:
Michal Josef Špaček 2023-08-23 12:16:55 +02:00
parent 5e9724d8af
commit 51d404a67c
2 changed files with 20 additions and 1 deletions

View File

@ -0,0 +1,12 @@
diff -r -u AnyEvent-7.14.orig/t/80_ssltest.t AnyEvent-7.14/t/80_ssltest.t
--- AnyEvent-7.14.orig/t/80_ssltest.t 2012-05-13 01:06:34.000000000 +0200
+++ AnyEvent-7.14/t/80_ssltest.t 2023-08-23 11:28:59.863150707 +0200
@@ -11,7 +11,7 @@
use AnyEvent::Handle;
use AnyEvent::TLS;
-my $ctx = new AnyEvent::TLS cert_file => $0;
+my $ctx = new AnyEvent::TLS cert_file => $0, dh => "schmorp2048";
for my $mode (1..5) {
ok (1, "mode $mode");

View File

@ -13,12 +13,14 @@
Name: perl-AnyEvent Name: perl-AnyEvent
Version: 7.14 Version: 7.14
Release: 6%{?dist} Release: 7%{?dist}
Summary: Framework for multiple event loops Summary: Framework for multiple event loops
Group: Development/Libraries Group: Development/Libraries
License: GPL+ or Artistic License: GPL+ or Artistic
URL: http://search.cpan.org/dist/AnyEvent/ URL: http://search.cpan.org/dist/AnyEvent/
Source0: http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/AnyEvent-%{version}%{?subver}.tar.gz Source0: http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/AnyEvent-%{version}%{?subver}.tar.gz
# rhbz#2108086 - Build is failing in %check section
Patch0: AnyEvent-7.14-fix_minimal_dh_algorithm.patch
# Build requirements # Build requirements
BuildRequires: coreutils BuildRequires: coreutils
@ -147,6 +149,7 @@ time).
%prep %prep
%setup -q -n AnyEvent-%{version}%{?subver} %setup -q -n AnyEvent-%{version}%{?subver}
%patch0 -p1
%build %build
@ -204,6 +207,10 @@ make test
%changelog %changelog
* Wed Aug 23 2023 Michal Josef Špaček <mspacek@redhat.com> - 7.14-7
- Fix tests run by adding better algorithm
Resolves: rhbz#2108086
* Tue Jul 17 2018 Petr Pisar <ppisar@redhat.com> - 7.14-6 * Tue Jul 17 2018 Petr Pisar <ppisar@redhat.com> - 7.14-6
- Do not test optional backends - Do not test optional backends