6 use Config qw/%Config/;
17 use lib qw{blib/arch};
19 XSLoader::load('Test::Valgrind', \$Test::Valgrind::VERSION);
25 diag "XS test code not available ($err)";
27 my $ret = eval "Test::Valgrind::DEBUGGING()";
31 if ($desc =~ /still\s+reachable/) {
32 $passed = $a >= 9900 && $a < 10100;
37 local $TODO = "Leak count may be off on non-debugging perls";
43 $passed = defined $a && $a == 0;
49 use lib qw{blib/archpub};
50 eval 'use Test::Valgrind cb => \&tester';
53 plan skip_all => 'Test::Valgrind is required to run test your distribution with valgrind';
56 use lib qw{blib/arch};
58 XSLoader::load('Test::Valgrind', \$Test::Valgrind::VERSION);
61 Test::Valgrind::leak();