summaryrefslogtreecommitdiffstats
path: root/t/03checks.t
blob: 3beb2ac521abe79881c5aeef293d214296213d74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/perl

# $Id: 01-compile.t 38877 2006-07-12 12:16:51Z nanardon $

use strict;
use warnings;

use Test::More tests => 4;

use_ok('MDV::Distribconf::Checks');

MDV::Distribconf::Checks::_report_err(
    sub {
        my %err = @_;
        is($err{errcode}, 'UNSYNC_HDLIST', 'get proper errcode');
        is($err{level}, 'E', 'get proper err level');
        ok($err{message}, 'get message');
    },
    'UNSYNC_HDLIST',
    'test message',
);