my $dbg;
sub tester {
- my ($a, $desc) = @_;
+ my ($num, $desc) = @_;
my $passed;
if (!defined $dbg) {
eval "
}
}
if ($desc =~ /definitely\s+lost/) {
- $passed = $a >= 9900 && $a < 10100;
+ $passed = $num >= 9900 && $num < 10100;
if ($dbg) {
ok($passed, $desc);
+ diag " Got $num instead of 0." unless $passed;
} else {
TODO: {
local $TODO = "Leak count may be off on non-debugging perls";
ok($passed, $desc);
}
- return 1;
+ $passed = 1;
}
} else {
- $passed = defined $a && $a == 0;
- is($a, 0, $desc);
+ $passed = defined $num && $num == 0;
+ is($num, 0, $desc);
}
return $passed;
}