[libtest-unit-perl] 02/03: Add patch to fix defined(@array) warnings
Axel Beckert
abe at deuxchevaux.org
Thu Dec 26 00:10:33 UTC 2013
This is an automated email from the git hooks/post-receive script.
abe pushed a commit to branch master
in repository libtest-unit-perl.
commit 5ca6816ad5bf67af5e027526eb62eb46e74418ac
Author: Axel Beckert <abe at deuxchevaux.org>
Date: Wed Dec 25 23:01:31 2013 +0100
Add patch to fix defined(@array) warnings
This has been reported upstream at
https://rt.cpan.org/Public/Bug/Display.html?id=77779
Also fixes many, but not all test suite failures. Update TODO
accordingly.
---
debian/changelog | 11 ++++++++---
debian/patches/20_fix-defined-array-warnings.patch | 13 +++++++++++++
debian/patches/series | 1 +
3 files changed, 22 insertions(+), 3 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 0f5a071..73a3f00 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,9 +1,9 @@
libtest-unit-perl (0.25-2) UNRELEASED; urgency=low
TODO:
- * Fix warning "defined(@array) is deprecated", would also fix test suite
- failures. Developper release (0.25_1325) seems to work fine. Perhaps
- can we wait for an official release
+ * Fix test (maybe hash randomization) suite failures (probably related
+ to https://rt.cpan.org/Public/Bug/Display.html?id=87017). Developper
+ release (0.25_1325) doesn't help, so ignoring it for now.
[ gregor herrmann ]
* Change patch system from dpatch to quilt.
@@ -25,6 +25,11 @@ libtest-unit-perl (0.25-2) UNRELEASED; urgency=low
* Change Vcs-Git to canonical URI (git://anonscm.debian.org)
* Change search.cpan.org based URIs to metacpan.org based URIs
+ [ Axel Beckert ]
+ * Add patch to fix defined(@array) warnings
+ (https://rt.cpan.org/Public/Bug/Display.html?id=77779).
+ + Also fixes many test suite failures.
+
-- gregor herrmann <gregoa at debian.org> Tue, 09 Oct 2007 22:32:29 +0200
libtest-unit-perl (0.25-1) unstable; urgency=low
diff --git a/debian/patches/20_fix-defined-array-warnings.patch b/debian/patches/20_fix-defined-array-warnings.patch
new file mode 100644
index 0000000..c0fe967
--- /dev/null
+++ b/debian/patches/20_fix-defined-array-warnings.patch
@@ -0,0 +1,13 @@
+Index: libtest-unit-perl/lib/Test/Unit/TestCase.pm
+===================================================================
+--- libtest-unit-perl.orig/lib/Test/Unit/TestCase.pm 2013-12-25 21:59:45.182407866 +0100
++++ libtest-unit-perl/lib/Test/Unit/TestCase.pm 2013-12-25 22:08:27.777044278 +0100
+@@ -103,7 +103,7 @@
+ my $class = ref($_[0]) || $_[0];
+ my @tests = ();
+ no strict 'refs';
+- if (defined(@{"$class\::TESTS"})) {
++ if (@{"$class\::TESTS"}) {
+ push @tests, @{"$class\::TESTS"};
+ }
+ else {
diff --git a/debian/patches/series b/debian/patches/series
index 9d5444d..a96e93f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
10_examples.patch
+20_fix-defined-array-warnings.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libtest-unit-perl.git
More information about the Pkg-perl-cvs-commits
mailing list