]> git.vpit.fr Git - perl/modules/Test-Valgrind.git/blobdiff - lib/Test/Valgrind.pm
No need to check the valgrind executable two times
[perl/modules/Test-Valgrind.git] / 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 };