]> git.vpit.fr Git - perl/modules/Test-Valgrind.git/blobdiff - gen.pl
More suppressions
[perl/modules/Test-Valgrind.git] / gen.pl
diff --git a/gen.pl b/gen.pl
index 99d5ca5cbf196d17b7af18e2f876b243056f87f7..b995b50552105da4dadb16e5a130cfd4e9cb418e 100755 (executable)
--- a/gen.pl
+++ b/gen.pl
@@ -1,5 +1,3 @@
-#!perl
-
 use strict;
 use warnings;
 
@@ -15,12 +13,17 @@ 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 ($@) {
+  plan tests => 1;
   Test::Valgrind::notleak("valgrind it!");
+  fail('fake');
+ } else {
+  diag $@;
  }
 }