[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[lintian] 06/08: t/runtests: Avoid of undef when there are no matches



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

nthykier pushed a commit to branch master
in repository lintian.

commit 1fc4b6cc85fcfa4f8cb49bae770089baa8daec1b
Author: Niels Thykier <niels@thykier.net>
Date:   Sun Aug 25 18:37:43 2013 +0200

    t/runtests: Avoid of undef when there are no matches
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 t/runtests |    1 +
 1 file changed, 1 insertion(+)

diff --git a/t/runtests b/t/runtests
index 68f25c0..b6bede5 100755
--- a/t/runtests
+++ b/t/runtests
@@ -719,6 +719,7 @@ sub generic_test_runner {
     my @matches = glob "$targetdir/*.$ext";
     my $file = shift @matches;
     unless ($file && -e $file) {
+        $file //= '<N/A>';
         fail join(q{ },
             "$testname did not produce any file matching",
             "\"$targetdir/*.$ext\" ($file)");

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git


Reply to: