X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FTest%2FValgrind%2FParser%2FXML.pm;h=213c4c8510f58a73104aee5a157addf3d85bba5f;hb=8a3289dfc8449aed2d53e35c52c269009630293e;hp=0e92e18595b1ada02250e9cda811af5afe16349a;hpb=08860dad1f820cce06758ec4add9353a4dbc8175;p=perl%2Fmodules%2FTest-Valgrind.git diff --git a/lib/Test/Valgrind/Parser/XML.pm b/lib/Test/Valgrind/Parser/XML.pm index 0e92e18..213c4c8 100644 --- a/lib/Test/Valgrind/Parser/XML.pm +++ b/lib/Test/Valgrind/Parser/XML.pm @@ -9,11 +9,11 @@ Test::Valgrind::Parser::XML - Parse valgrind output as an XML stream. =head1 VERSION -Version 1.10 +Version 1.18 =cut -our $VERSION = '1.10'; +our $VERSION = '1.18'; =head1 DESCRIPTION @@ -21,11 +21,13 @@ This is a base class for L objects that can parse C; =head1 METHODS -=head2 C +=head2 C + + my @args = $tvp->args($session, $fh); Returns the arguments needed to tell C to print in XML to the filehandle C<$fh>. @@ -35,10 +37,11 @@ sub args { my $self = shift; my ($session, $fh) = @_; - my $fd_opt = $session->version ge '3.5.0' ? '--xml-fd=' : '--log-fd='; + my $fd_opt = $session->version >= '3.5.0' ? '--xml-fd=' : '--log-fd='; return ( $self->SUPER::args(@_), + '--xml=yes', $fd_opt . fileno($fh), ); } @@ -66,7 +69,7 @@ You can find documentation for this module with the perldoc command. =head1 COPYRIGHT & LICENSE -Copyright 2009 Vincent Pit, all rights reserved. +Copyright 2009,2010,2011,2013,2015 Vincent Pit, all rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.