File: 04_leak.t

package info (click to toggle)
libfile-mmagic-xs-perl 0.09006-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 556 kB
  • ctags: 1,102
  • sloc: perl: 1,870; ansic: 1,856; makefile: 7; xml: 1
file content (24 lines) | stat: -rw-r--r-- 367 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
use strict;
use Test::More;
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;