From c3a2b336ac4b123b2d4e1b1d23dca9dfcf08a515 Mon Sep 17 00:00:00 2001
From: Paul Howarth <p...@city-fan.org>
Date: Wed, 12 Apr 2017 18:03:32 +0100
Subject: Revert t/fail.t test plan change as test is quite flaky

---
 Contextual-Return-0.004012-plan.patch | 11 +++++++++++
 perl-Contextual-Return.spec           |  5 +++++
 2 files changed, 16 insertions(+)
 create mode 100644 Contextual-Return-0.004012-plan.patch

diff --git a/Contextual-Return-0.004012-plan.patch 
b/Contextual-Return-0.004012-plan.patch
new file mode 100644
index 0000000..b493873
--- /dev/null
+++ b/Contextual-Return-0.004012-plan.patch
@@ -0,0 +1,11 @@
+--- t/fail.t
++++ t/fail.t
+@@ -1,7 +1,6 @@
+ use Contextual::Return qw< FAIL FAIL_WITH >;
+ 
+-use Test::More;
+-plan tests => 19;
++use Test::More 'no_plan';
+ 
+ sub eval_nok(&$$) {
+     my ($block, $exception_pat, $message) = @_;
diff --git a/perl-Contextual-Return.spec b/perl-Contextual-Return.spec
index 757bf68..64a99b0 100644
--- a/perl-Contextual-Return.spec
+++ b/perl-Contextual-Return.spec
@@ -5,6 +5,7 @@ Summary:        Create context-sensitive return values
 License:        GPL+ or Artistic
 URL:            http://search.cpan.org/dist/Contextual-Return
 Source0:        
http://search.cpan.org/CPAN/authors/id/D/DC/DCONWAY/Contextual-Return-%{version}.tar.gz
+Patch0:                Contextual-Return-0.004012-plan.patch
 BuildArch:      noarch
 # Build
 BuildRequires:  coreutils
@@ -37,6 +38,9 @@ appropriate given the calling context.
 %prep
 %setup -q -n Contextual-Return-%{version}
 
+# Get rid of plan on flaky test, which either runs 10 or 19 tests seemingly at 
random
+%patch0
+
 %build
 perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
 make %{?_smp_mflags}
@@ -59,6 +63,7 @@ make test
 - Update to 0.004012
   - Optimized previous patch for memory leak
   - Added missing test plan to t/fail.t
+- Revert t/fail.t test plan change as test is quite flaky
 
 * Sun Apr  9 2017 Paul Howarth <p...@city-fan.org> - 0.004011-1
 - Update to 0.004011
-- 
cgit v1.1


        
https://src.fedoraproject.org/cgit/perl-Contextual-Return.git/commit/?h=master&id=c3a2b336ac4b123b2d4e1b1d23dca9dfcf08a515
_______________________________________________
perl-devel mailing list -- perl-devel@lists.fedoraproject.org
To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org

Reply via email to