Test::Valgrind::Command::Perl(3pm)

Test::Valgrind::Command::Perl3pm

A test::valgrind command that invokes perl.

Version

Version 1.19

Overview

This command is the base for all "perl"-based commands. It handles the suppression generation and sets the main command-line flags.

Methods

This class inherits Test::Valgrind::Command.

"new"

    my $tvcp = Test::Valgrind::Command::Perl->new(
     perl       => $^X,
     inc        => \@INC,
     taint_mode => $taint_mode,
     %extra_args,
    );

The package constructor, which takes several options :

•

The "perl" option specifies which "perl" executable will run the argument list given in "args".

Defaults to $^X.

•

"inc" is a reference to an array of paths that will be passed as "-I" to the invoked command.

Defaults to @INC.

•

$taint_mode is a boolean that specifies if the script should be run under taint mode.

Defaults to false.

Other arguments are passed straight to "Test::Valgrind::Command->new".

"perl"

    my $perl = $tvcp->perl;

Read-only accessor for the "perl" option.

"inc"

    my @inc = $tvcp->inc;

Read-only accessor for the "inc" option.

"taint_mode"

    my $taint_mode = $tvcp->taint_mode;

Read-only accessor for the "taint_mode" option.

"env"

    my $env = $tvcp->env($session);

Returns an Env::Sanctify object that sets the environment variables "PERL_DESTRUCT_LEVEL" to 3 and "PERL_DL_NONLAZY" to 1 during the run.

Support

You can find documentation for this module with the perldoc command.

    perldoc Test::Valgrind::Command::Perl

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 5 times.

  1. 6.0
  2. 7
  3. 8
  4. 9–11
  5. 12
  6. 13

Author

Vincent Pit, "<perl at profvince.com>", <http://www.profvince.com>.

You can contact me by mail or on "irc.perl.org" (vincent).

Bugs

Please report any bugs or feature requests to "bug-test-valgrind at rt.cpan.org", or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test-Valgrind>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

From libtest-valgrind-perl 1.19-6 in Debian 13 (Trixie). Parsed by carta from the page's man source.