X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FTest%2FValgrind%2FTool.pm;h=a82b95d676632a0f65c0e6d632375908b6ab3105;hb=943acd9991dfbe73afc5eca6921767f098f5e6a9;hp=a1211af7fb3a3dedaf668ca290980d677cfa15db;hpb=01ace0ff88ffd8fb63dfebcc3b8a8baaf9e0df25;p=perl%2Fmodules%2FTest-Valgrind.git diff --git a/lib/Test/Valgrind/Tool.pm b/lib/Test/Valgrind/Tool.pm index a1211af..a82b95d 100644 --- a/lib/Test/Valgrind/Tool.pm +++ b/lib/Test/Valgrind/Tool.pm @@ -24,7 +24,7 @@ They are expected to function both in suppressions generation and in analysis mo =cut -use base qw/Test::Valgrind::Carp/; +use base qw/Test::Valgrind::Component Test::Valgrind::Carp/; =head1 METHODS @@ -58,11 +58,7 @@ sub new { return $tool->new(%args); } - my $self = bless { }, $class; - - $self->started(undef); - - $self; + $class->SUPER::new(@_); } =head2 C @@ -132,30 +128,11 @@ This method must be implemented when subclassing. sub suppressions_tag; -=head2 C - -Specifies whether the tool is running (C<1>), stopped (C<0>) or was never started (C). - -=cut - -sub started { @_ <= 1 ? $_[0]->{started} : ($_[0]->{started} = $_[1]) } - =head2 C Called when the C<$session> starts. -Defaults to set L. - -=cut - -sub start { - my ($self) = @_; - - $self->_croak('Tool already started') if $self->started; - $self->started(1); - - return; -} +Defaults to set L. =head2 C @@ -200,22 +177,11 @@ sub parse_analysis; Called when the C<$session> finishes. -Defaults to clear L. - -=cut - -sub finish { - my ($self) = @_; - - return unless $self->started; - $self->started(0); - - return; -} +Defaults to clear L. =head1 SEE ALSO -L, L. +L, L, L. =head1 AUTHOR