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