]> git.vpit.fr Git - perl/modules/Test-Valgrind.git/commitdiff
Fix generations of XSLoader suppressions
authorVincent Pit <vince@profvince.com>
Tue, 9 Sep 2008 22:02:06 +0000 (00:02 +0200)
committerVincent Pit <vince@profvince.com>
Tue, 9 Sep 2008 22:02:06 +0000 (00:02 +0200)
gen.pl

diff --git a/gen.pl b/gen.pl
index 65726b04656f45027738ed801a9fbed5305fcce5..9376b5c39f05d69fc084254ee32c3a4006d94c40 100755 (executable)
--- 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 $@;
  }
 }