commit 9fc8e894523ea56f74d395682e433f5afc69f3bb Author: Paul Howarth <paul@xxxxxxxxxxxx> Date: Fri Jul 30 12:46:56 2010 +0100 Update patch for old Test::More versions Changes in the test suite between versions 0.03 and 0.04 resulted in the need to update the patch to get the test suite to work with Test::More versions older than 0.88. ...atch => Package-Stash-0.04-old-Test::More.patch | 32 +++++++++++++++---- perl-Package-Stash.spec | 2 +- 2 files changed, 26 insertions(+), 8 deletions(-) --- diff --git a/Package-Stash-0.03-old-Test::More.patch b/Package-Stash-0.04-old-Test::More.patch similarity index 77% rename from Package-Stash-0.03-old-Test::More.patch rename to Package-Stash-0.04-old-Test::More.patch index b199912..82ca874 100644 --- a/Package-Stash-0.03-old-Test::More.patch +++ b/Package-Stash-0.04-old-Test::More.patch @@ -52,21 +52,21 @@ diff -up Package-Stash-0.03/t/003-io.t.orig Package-Stash-0.03/t/003-io.t } - -done_testing; -diff -up Package-Stash-0.03/t/004-get.t.orig Package-Stash-0.03/t/004-get.t ---- Package-Stash-0.03/t/004-get.t.orig 2010-05-14 17:41:34.000000000 +0100 -+++ Package-Stash-0.03/t/004-get.t 2010-06-07 09:53:18.595164511 +0100 +diff -up Package-Stash-0.04/t/004-get.t.orig Package-Stash-0.04/t/004-get.t +--- Package-Stash-0.04/t/004-get.t.orig 2010-06-13 18:13:45.000000000 +0100 ++++ Package-Stash-0.04/t/004-get.t 2010-06-14 14:32:39.855811492 +0100 @@ -1,7 +1,7 @@ #!/usr/bin/env perl use strict; use warnings; -use Test::More; -+use Test::More tests => 4; ++use Test::More tests => 10; use Package::Stash; -@@ -22,5 +22,3 @@ use Package::Stash; - is_deeply($stash->get_package_symbol('@foo'), [1], - "got the right variable"); +@@ -62,5 +62,3 @@ + is_deeply($stash->get_or_add_package_symbol('@foo'), [1], + "got the right variable"); } - -done_testing; @@ -93,6 +93,24 @@ diff -up Package-Stash-0.03/t/005-isa.t.orig Package-Stash-0.03/t/005-isa.t +skip "Test::More >= 0.88 needed for isa_ok() tests on classes", 1 if $Test::More::VERSION < 0.88; +isa_ok('Foo', 'Bar'); +} +diff -up Package-Stash-0.04/t/006-addsub.t.orig Package-Stash-0.04/t/006-addsub.t +--- Package-Stash-0.04/t/006-addsub.t.orig 2010-06-13 18:13:45.000000000 +0100 ++++ Package-Stash-0.04/t/006-addsub.t 2010-06-14 14:14:10.462975877 +0100 +@@ -1,7 +1,7 @@ + use strict; + use warnings; + +-use Test::More; ++use Test::More tests => 7; + use Test::Exception; + + BEGIN { $^P |= 0x210 } # PERLDBf_SUBLINE +@@ -41,5 +41,3 @@ + + is $DB::sub{'Foo::dunk'}, sprintf "%s:%d-%d", "FileName", 100, 199, + '... got the right %DB::sub value for dunk with specified args'; +- +-done_testing; diff -up Package-Stash-0.03/t/010-synopsis.t.orig Package-Stash-0.03/t/010-synopsis.t --- Package-Stash-0.03/t/010-synopsis.t.orig 2010-05-14 17:41:34.000000000 +0100 +++ Package-Stash-0.03/t/010-synopsis.t 2010-06-07 09:53:18.596164680 +0100 diff --git a/perl-Package-Stash.spec b/perl-Package-Stash.spec index ea5f8fc..45eb87e 100644 --- a/perl-Package-Stash.spec +++ b/perl-Package-Stash.spec @@ -7,7 +7,7 @@ License: GPL+ or Artistic URL: http://search.cpan.org/dist/Package-Stash/ Source0: http://search.cpan.org/CPAN/authors/id/D/DO/DOY/Package-Stash-%{version}.tar.gz Patch0: Package-Stash-0.03-EU::MM-version.patch -Patch1: Package-Stash-0.03-old-Test::More.patch +Patch1: Package-Stash-0.04-old-Test::More.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: perl(ExtUtils::MakeMaker) -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel