File: 20-bad.t

package info (click to toggle)
libtest-valgrind-perl 1.19-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 424 kB
  • sloc: perl: 2,779; makefile: 22
file content (31 lines) | stat: -rw-r--r-- 472 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
#!perl

use strict;
use warnings;

use Test::More;

use lib 't/lib';

eval {
 require Test::Valgrind;
 Test::Valgrind->import(
  action => 'Test::Valgrind::Test::Action',
 );
};
if ($@) {
 diag $@;
 plan skip_all
        => 'Test::Valgrind is required to test your distribution with valgrind';
}

eval {
 require XSLoader;
 XSLoader::load('Test::Valgrind', $Test::Valgrind::VERSION);
};
if ($@) {
 diag $@;
} else {
 diag "leaking some bytes!";
 Test::Valgrind::leak();
}