X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=gen.pl;h=9376b5c39f05d69fc084254ee32c3a4006d94c40;hb=c68960c84e31ce63f76ffd82bc309d0cde006fa2;hp=65726b04656f45027738ed801a9fbed5305fcce5;hpb=cb1a72bfb539b0dbb8d56a24d77bfc23d935e397;p=perl%2Fmodules%2FTest-Valgrind.git diff --git a/gen.pl b/gen.pl index 65726b0..9376b5c 100755 --- a/gen.pl +++ b/gen.pl @@ -13,12 +13,15 @@ eval { if ($@) { plan skip_all => 'Test::Valgrind is required to run test your distribution with valgrind'; } else { - eval { + eval " + use lib qw{blib/arch}; require XSLoader; - XSLoader::load('Test::Valgrind', $Test::Valgrind::VERSION); - }; + XSLoader::load('Test::Valgrind', \$Test::Valgrind::VERSION); + "; unless ($@) { Test::Valgrind::notleak("valgrind it!"); + } else { + diag $@; } }