]> git.vpit.fr Git - perl/modules/Test-Valgrind.git/commitdiff
No need to check the valgrind executable two times
authorVincent Pit <vince@profvince.com>
Mon, 25 Aug 2008 20:09:35 +0000 (22:09 +0200)
committerVincent Pit <vince@profvince.com>
Mon, 25 Aug 2008 20:09:35 +0000 (22:09 +0200)
lib/Test/Valgrind.pm

index 29e88580d63def80614a37f1a01c4b5f612ff21d..838a3ae777223ad0952cf5862de84a7d8d37b399 100644 (file)
@@ -134,7 +134,7 @@ sub import {
    print STDERR "valgrind @args\n" if $args{diag};
    local $ENV{PERL_DESTRUCT_LEVEL} = 3;
    local $ENV{PERL_DL_NONLAZY} = 1;
-   exec $vg, @args if $vg and -x $vg;
+   exec $vg, @args;
   }
   close $wtr or croak "close(\$wtr): $!";
   local $SIG{INT} = sub { kill -(SIGTERM) => $pid };