X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FTest-Valgrind.git;a=blobdiff_plain;f=lib%2FTest%2FValgrind%2FSession.pm;h=951713f9f3978296f5fb2669e7b175641d48dd8b;hp=6c2a16c3fd2f190b957708769d9e886d0b325c23;hb=44f0639e6ac34bdc0be52d47fe2c2df43ab1ca94;hpb=5faeae4df8604583bbb24770048925b7345cc7a5 diff --git a/lib/Test/Valgrind/Session.pm b/lib/Test/Valgrind/Session.pm index 6c2a16c..951713f 100644 --- a/lib/Test/Valgrind/Session.pm +++ b/lib/Test/Valgrind/Session.pm @@ -30,7 +30,7 @@ use POSIX (); # SIGKILL use version (); -use base qw/Test::Valgrind::Carp/; +use base qw; =head1 METHODS @@ -153,7 +153,7 @@ Read-only accessor for the C option. =cut -eval "sub $_ { \$_[0]->{$_} }" for qw/valgrind no_def_supp/; +eval "sub $_ { \$_[0]->{$_} }" for qw; =head2 C @@ -295,7 +295,7 @@ Read-only accessor for the C associated to the current run. my @members; BEGIN { - @members = qw/action tool command parser/; + @members = qw; for (@members) { eval "sub $_ { \@_ <= 1 ? \$_[0]->{$_} : (\$_[0]->{$_} = \$_[1]) }"; die if $@; @@ -388,7 +388,7 @@ sub start { my %args = @_; - for (qw/action tool command/) { + for (qw) { my $base = 'Test::Valgrind::' . ucfirst; my $value = $args{$_}; $self->_croak("Invalid $_") unless Scalar::Util::blessed($value) @@ -396,7 +396,7 @@ sub start { $self->$_($args{$_}) } - delete @{$self}{qw/last_status exit_code/}; + delete @{$self}{qw}; $self->tool->start($self); $self->parser($self->parser_class->new)->start($self); @@ -428,7 +428,7 @@ sub report { return unless defined $report; - for my $handler (qw/tool command/) { + for my $handler (qw) { $report = $self->$handler->filter($self, $report); return unless defined $report; }