11 my ($num, $desc) = @_;
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 =~ /definitely\s+lost/) {
30 $passed = $num >= 9900 && $num < 10100;
33 diag " Got $num instead of 0." unless $passed;
36 local $TODO = "Leak count may be off on non-debugging perls";
42 $passed = defined $num && $num == 0;
48 use lib qw{blib/archpub};
49 eval 'use Test::Valgrind cb => \&tester';
52 plan skip_all => 'Test::Valgrind is required to run test your distribution with valgrind';
55 use lib qw{blib/arch};
57 XSLoader::load('Test::Valgrind', \$Test::Valgrind::VERSION);
60 Test::Valgrind::leak();