}
}
if (!$vg) {
- $Test->plan(skip_all => 'No valgrind executable could be found in your path');
+ $Test->skip_all('No valgrind executable could be found in your path');
return;
}
}
}
close $wtr or croak "close(\$wtr): $!";
local $SIG{INT} = sub { kill -(SIGTERM) => $pid };
- $Test->plan(tests => 5) unless $args{no_test};
+ $Test->plan(tests => 5) unless $args{no_test} or defined $Test->has_plan;
my @tests = (
'errors',
'definitely lost', 'indirectly lost', 'possibly lost', 'still reachable'