[libconfig-model-dpkg-perl] 08/12: dependency test: avoid an undef warning

dod at debian.org dod at debian.org
Wed Mar 26 20:07:56 UTC 2014


This is an automated email from the git hooks/post-receive script.

dod pushed a commit to branch master
in repository libconfig-model-dpkg-perl.

commit be3b20386c2b5be453bca79804fcb1e2c2b34e46
Author: Dominique Dumont <dod at debian.org>
Date:   Wed Mar 26 12:29:27 2014 +0100

    dependency test: avoid an undef warning
---
 t/dependency-check.t | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/t/dependency-check.t b/t/dependency-check.t
index 24fbbc7..df1c309 100644
--- a/t/dependency-check.t
+++ b/t/dependency-check.t
@@ -20,7 +20,7 @@ BEGIN {
         foobar => undef, # used to test that unknown package trigger a warning, real cache should not contain undef
     );
     my $t = time ;
-    map { $_ = "$t $_"} values %Config::Model::Dpkg::Dependency::cache ;
+    map { $_ = "$t $_"} grep {defined $_} values %Config::Model::Dpkg::Dependency::cache ;
 }
 
 use ExtUtils::testlib;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libconfig-model-dpkg-perl.git



More information about the Pkg-perl-cvs-commits mailing list