Remove a bogus test that fails on PDF binary files randomly

This commit is contained in:
Petr Písař 2019-07-29 09:16:55 +02:00
parent ad28baba90
commit e2b5b90a65
2 changed files with 51 additions and 1 deletions

View File

@ -0,0 +1,44 @@
From 83987c6c69aa34a60eeb0dda95dd40cf6cbcb24d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
Date: Mon, 29 Jul 2019 09:13:05 +0200
Subject: [PATCH] Do not test PDF file for new-lines
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
A PDF file can contain a stream object that contains "\r\n"byte
sequence. Therefore it does not make sense to test the PDF file for
new-lines.
CPAN RT#130221
Signed-off-by: Petr Písař <ppisar@redhat.com>
---
t/05_cleanpdf.t | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/t/05_cleanpdf.t b/t/05_cleanpdf.t
index bb8f863..59b8ab7 100644
--- a/t/05_cleanpdf.t
+++ b/t/05_cleanpdf.t
@@ -14,7 +14,7 @@ unless ( -e 'have_make' ) {
eval { require App::pod2pdf; };
plan skip_all => 'App::pod2pdf not installed' if $@;
-plan tests => 13;
+plan tests => 12;
{
my $make = $Config{make};
@@ -70,7 +70,7 @@ ok( -e 'Foobar.man', 'There is a Foobar.man file' );
ok( -e 'Foobar.pdf', 'There is a Foobar.pdf file' );
unlike io->file($_)->all, qr/\r\n/, "$_ contains only unix newlines"
- for qw( Foobar.txt Foobar.htm Foobar.man Foobar.pdf );
+ for qw( Foobar.txt Foobar.htm Foobar.man );
my $distclean = capture_merged { system "$make distclean" };
diag("$distclean");
--
2.20.1

View File

@ -3,13 +3,15 @@
Name: perl-Module-Install-ReadmeFromPod
Version: 0.30
Release: 9%{?dist}
Release: 10%{?dist}
Summary: Module::Install extension to automatically convert POD to a README
License: GPL+ or Artistic
URL: https://metacpan.org/release/Module-Install-ReadmeFromPod
Source0: https://cpan.metacpan.org/authors/id/B/BI/BINGOS/Module-Install-ReadmeFromPod-%{version}.tar.gz
# Regenerate README in UTF-8
Patch0: Module-Install-ReadmeFromPod-0.26-Regenerate-README-in-UTF-8.patch
# Remove a bogus test that fails on PDF binary files randomly, CPAN RT#130221
Patch1: Module-Install-ReadmeFromPod-0.30-Do-not-test-PDF-file-for-new-lines.patch
BuildArch: noarch
BuildRequires: coreutils
BuildRequires: findutils
@ -75,6 +77,7 @@ supported: plain-text, HTML, PDF or manual page.
%prep
%setup -q -n Module-Install-ReadmeFromPod-%{version}
%patch0 -p1
%patch1 -p1
# Remove bundled modules
rm -r inc
sed -i -e '/^inc\// d' MANIFEST
@ -100,6 +103,9 @@ make test
%{_mandir}/man3/*
%changelog
* Mon Jul 29 2019 Petr Pisar <ppisar@redhat.com> - 0.30-10
- Remove a bogus test that fails on PDF binary files randomly (CPAN RT#130221)
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.30-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild