1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
#!perl
#
# 'Borrowed' from DMAKI's File-MMagic-XS
use strict;
use warnings;
use Test::More;
use Encoding::FixLatin qw(fix_latin);
use Encoding::FixLatin::XS;
BEGIN {
if (! $ENV{TEST_MEMLEAK}) {
plan skip_all => "TEST_MEMLEAK is not set";
}
}
use Test::Requires
'Test::Valgrind',
'XML::Parser',
;
while ( my $f = <t/*.t> ) {
subtest $f => sub { do $f };
}
while ( my $f = <t/*.t> ) {
for my $i (1..10) {
subtest $f => sub { do $f };
}
}
done_testing;
|