X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=gen.pl;h=eb751e417ff9f62136cd0fa0ef99112e685edb2b;hb=acae07cb4264d1039a86aa31854cca2ce37382f1;hp=65726b04656f45027738ed801a9fbed5305fcce5;hpb=c797e80943830b771b661ffe8e7ecdb46288ad16;p=perl%2Fmodules%2FTest-Valgrind.git diff --git a/gen.pl b/gen.pl index 65726b0..eb751e4 100755 --- a/gen.pl +++ b/gen.pl @@ -13,13 +13,18 @@ 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 $@; } + plan tests => 1; + fail('fake'); } 1;