only report test debug counts if there was a leak
This commit is contained in:
parent
b6c1837756
commit
81336e3ee6
1 changed files with 4 additions and 1 deletions
|
|
@ -135,7 +135,10 @@ sub import {
|
||||||
for ( my $i = 0; $i < @checkCount; $i += 2) {
|
for ( my $i = 0; $i < @checkCount; $i += 2) {
|
||||||
my ($label, $table) = @checkCount[$i, $i+1];
|
my ($label, $table) = @checkCount[$i, $i+1];
|
||||||
my $quant = $session->db->quickScalar('SELECT COUNT(*) FROM ' . $table);
|
my $quant = $session->db->quickScalar('SELECT COUNT(*) FROM ' . $table);
|
||||||
$CLASS->builder->diag(sprintf '%-10s: %4d (delta %+d)', $label, $quant, ($quant - $initCounts{$table}));
|
my $delta = $quant - $initCounts{$table};
|
||||||
|
if ($delta) {
|
||||||
|
$CLASS->builder->diag(sprintf '%-10s: %4d (delta %+d)', $label, $quant, $delta);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue