summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2011-05-19 16:29:11 -0600
committerKarl Williamson <public@khwilliamson.com>2011-05-19 16:54:47 -0600
commit09ea063ae4981d35da43b5638214a5cc8d04ac87 (patch)
treedc8f7f70955f562608449bc9511b89363408751f
parentf961539761e7102d5e574ea6cf9c9f345dec91c6 (diff)
downloadperl-09ea063ae4981d35da43b5638214a5cc8d04ac87.tar.gz
podcheck.t: Missing diagnostics
podcheck.t was not outputting a message when all occurrences of an issue were removed, and hence the database wasn't getting regenerated
-rw-r--r--t/porting/podcheck.t14
1 files changed, 10 insertions, 4 deletions
diff --git a/t/porting/podcheck.t b/t/porting/podcheck.t
index 92a9ec7894..999bcb1f1b 100644
--- a/t/porting/podcheck.t
+++ b/t/porting/podcheck.t
@@ -1362,10 +1362,6 @@ foreach my $filename (@files) {
my @diagnostics;
my $indent = ' ';
- if ( ! $problems{$filename} && $known_problems{$filename}) {
- push @diagnostics, output_thanks($filename,
- scalar keys %{$known_problems{$filename}}, 0, undef);
- }
my $total_known = 0;
foreach my $message ( sort keys %{$problems{$filename}}) {
$known_problems{$filename}{$message} = 0
@@ -1399,6 +1395,16 @@ foreach my $filename (@files) {
push @diagnostics, $diagnostic if $diagnostic;
}
+ # The above loop has output messages where there are current potential
+ # issues. But it misses where there were some that have been entirely
+ # fixed. For those, we need to look through the old issues
+ foreach my $message ( sort keys %{$known_problems{$filename}}) {
+ next if $problems{$filename}{$message};
+ next if ! $known_problems{$filename}{$message};
+ my $diagnostic = output_thanks($filename, $known_problems{$filename}{$message}, 0, $message);
+ push @diagnostics, $diagnostic if $diagnostic;
+ }
+
my $output = "POD of $filename";
$output .= ", excluding $total_known not shown known potential problems"
if $total_known;