From: Vincent Pit Date: Mon, 25 Aug 2008 20:09:35 +0000 (+0200) Subject: No need to check the valgrind executable two times X-Git-Tag: v0.05~4 X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FTest-Valgrind.git;a=commitdiff_plain;h=abef72093aab236f819fb3f3dcc6b890895451c4 No need to check the valgrind executable two times --- diff --git a/lib/Test/Valgrind.pm b/lib/Test/Valgrind.pm index 29e8858..838a3ae 100644 --- a/lib/Test/Valgrind.pm +++ b/lib/Test/Valgrind.pm @@ -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 };