diff options
author | Greg Sabino Mullane | 2012-01-16 16:01:57 +0000 |
---|---|---|
committer | Greg Sabino Mullane | 2012-01-16 16:01:57 +0000 |
commit | 0f4a6454d5a72a715474481d1f4d14bf185e2dec (patch) | |
tree | 539a9fb82f95697ce41bc388c2df72a2c59685b8 | |
parent | dd620c3ca18d9dc33aa5966525ffd198ab8efecc (diff) |
Add some debugging to the perlcritic test
-rw-r--r-- | t/99_perlcritic.t | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/t/99_perlcritic.t b/t/99_perlcritic.t index 4c8cfe0f9..3bb7610f0 100644 --- a/t/99_perlcritic.t +++ b/t/99_perlcritic.t @@ -41,7 +41,9 @@ for my $filename (qw{Makefile.PL check_postgres.pl t/CP_Testing.pm}) { -e $filename or die qq{Could not find "$filename"!}; open my $oldstderr, '>&', \*STDERR or die 'Could not dupe STDERR'; close STDERR or die qq{Could not close STDERR: $!}; + diag "Running perlcritic on file $filename"; my @vio = $critic->critique($filename); + diag "Done"; open STDERR, '>&', $oldstderr or die 'Could not recreate STDERR'; ## no critic close $oldstderr or die qq{Could not close STDERR copy: $!}; my $vios = 0; |