return $passed;
}
-eval "
- require XSLoader;
- XSLoader::load('Test::Valgrind', 0.06);
-";
+use lib qw{blib/archpub};
+eval 'use Test::Valgrind cb => \&tester';
if ($@) {
- plan skip_all => "XS test code not available ($@)";
+ diag $@;
+ plan skip_all => 'Test::Valgrind is required to run test your distribution with valgrind';
} else {
- use lib qw{blib/archpub};
- eval 'use Test::Valgrind cb => \&tester;';
+ eval "
+ use lib qw{blib/arch};
+ require XSLoader;
+ XSLoader::load('Test::Valgrind', \$Test::Valgrind::VERSION);
+ ";
if ($@) {
diag $@;
- plan skip_all => 'Test::Valgrind is required to run test your distribution with valgrind';
+ plan skip_all => "XS test code not available";
} else {
Test::Valgrind::leak();
}