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

[lintian] 03/03: t/runtests: Filter out most of the warnings from D::Cover



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

nthykier pushed a commit to branch master
in repository lintian.

commit 8db051a030dcdbef9f67afdd1e5aacee385eb4b2
Author: Niels Thykier <niels@thykier.net>
Date:   Sun Mar 16 20:57:29 2014 +0100

    t/runtests: Filter out most of the warnings from D::Cover
    
    Add a simple regex to filter out most (but sadly not all) of the
    warnings caused by Devel::emits when it processing Lintian.
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 t/runtests | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/t/runtests b/t/runtests
index 78cdafd..9f5feb0 100755
--- a/t/runtests
+++ b/t/runtests
@@ -539,6 +539,16 @@ sub run_lintian {
             fail("close pipe: $!") if $err->errno;
             $status = ($? >> 8) & 255;
         }
+        if (defined($coverage)) {
+            # Devel::Cover causes some annoying deep recursion
+            # warnings.  Filter them out, but only during coverage.
+            # - This is not flawless, but it gets most of them
+            @data = grep {
+                !m{^Deep [ ] recursion [ ] on [ ] subroutine [ ]
+                    "[^"]+" [ ] at [ ] .*B/Deparse.pm [ ] line [ ]
+                   \d+}xsm
+            } @data;
+        }
         unless ($status == 0 or $status == 1) {
             msg_print "FAILED\n";
             for my $line (@data) {

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


Reply to: