1 package Test::Valgrind::Parser::XML;
8 Test::Valgrind::Parser::XML - Parse valgrind output as an XML stream.
16 our $VERSION = '1.13';
20 This is a base class for L<Test::Valgrind::Parser> objects that can parse C<valgrind>'s XML output.
24 use base qw<Test::Valgrind::Parser>;
30 my @args = $tvp->args($session, $fh);
32 Returns the arguments needed to tell C<valgrind> to print in XML to the filehandle C<$fh>.
38 my ($session, $fh) = @_;
40 my $fd_opt = $session->version ge '3.5.0' ? '--xml-fd=' : '--log-fd=';
43 $self->SUPER::args(@_),
45 $fd_opt . fileno($fh),
51 L<Test::Valgrind>, L<Test::Valgrind::Parser>.
55 Vincent Pit, C<< <perl at profvince.com> >>, L<http://www.profvince.com>.
57 You can contact me by mail or on C<irc.perl.org> (vincent).
61 Please report any bugs or feature requests to C<bug-test-valgrind at rt.cpan.org>, or through the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test-Valgrind>.
62 I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
66 You can find documentation for this module with the perldoc command.
68 perldoc Test::Valgrind::Parser::XML
70 =head1 COPYRIGHT & LICENSE
72 Copyright 2009,2010,2011 Vincent Pit, all rights reserved.
74 This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
78 1; # End of Test::Valgrind::Parser::XML