File: 01-leak.t

package info (click to toggle)
libencoding-fixlatin-xs-perl 1.02-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 320 kB
  • sloc: perl: 166; makefile: 3; sh: 1
file content (35 lines) | stat: -rw-r--r-- 503 bytes parent folder | download | duplicates (3)
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;