15 use lib qw{blib/arch};
17 XSLoader::load('Test::Valgrind', \$Test::Valgrind::VERSION);
23 diag "XS test code not available ($err)";
25 my $ret = eval "Test::Valgrind::DEBUGGING()";
29 if ($desc =~ /still\s+reachable/) {
30 $passed = $a >= 9900 && $a < 10100;
35 local $TODO = "Leak count may be off on non-debugging perls";
41 $passed = defined $a && $a == 0;
47 use lib qw{blib/archpub};
48 eval 'use Test::Valgrind cb => \&tester';
51 plan skip_all => 'Test::Valgrind is required to run test your distribution with valgrind';
54 use lib qw{blib/arch};
56 XSLoader::load('Test::Valgrind', \$Test::Valgrind::VERSION);
59 Test::Valgrind::leak();