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

[lintian] 01/01: t: Add missing return



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

nthykier pushed a commit to branch master
in repository lintian.

commit 6b22e9335770d6e34dd9542594d114de9b430719
Author: Niels Thykier <niels@thykier.net>
Date:   Sat Oct 11 10:47:35 2014 +0200

    t: Add missing return
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 t/scripts/Lintian/Relation/05-invalid.t | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/t/scripts/Lintian/Relation/05-invalid.t b/t/scripts/Lintian/Relation/05-invalid.t
index ed7772d..cf5c9e5 100755
--- a/t/scripts/Lintian/Relation/05-invalid.t
+++ b/t/scripts/Lintian/Relation/05-invalid.t
@@ -26,13 +26,16 @@ done_testing;
 sub test_relation {
     my ($str, %tests) = @_;
     my $rel = Lintian::Relation->new($str);
+    my $tests = 0;
     if (my $unparsed = $tests{'unparsed'}) {
         is($rel->unparse, $unparsed, "Unparse $str");
+        $tests++;
     }
     if (my $implications = $tests{'implied'}) {
         for my $imp (@{$implications}) {
             my $test = qq{"$str" implies "$imp"};
             ok($rel->implies($imp), $test);
+            $tests++;
         }
     }
 
@@ -40,7 +43,10 @@ sub test_relation {
         for my $no_imp (@{$non_implications}) {
             my $test = qq{"$str" does NOT imply "$no_imp"};
             ok(!$rel->implies($no_imp), $test);
+            $tests++;
         }
     }
+    cmp_ok($tests, '>=', 1, qq{Ran at least on test on "$str"});
+    return;
 }
 

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


Reply to: