summaryrefslogtreecommitdiff
path: root/t/058Warnings.t
blob: 4dbb4645c7fb567fe5b8270c0afbfc0f622f0d77 (plain)
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

BEGIN { 
    if($ENV{INTERNAL_DEBUG}) {
        require Log::Log4perl::InternalDebug;
        Log::Log4perl::InternalDebug->enable();
    }
}

use Test::More;
use Log::Log4perl qw(:nostrict);

plan tests => 1;

my $warnings;

$SIG{__WARN__} = sub {
    $warnings .= $_[0];
};

my $EG_DIR = "eg";
$EG_DIR = "../eg" unless -d $EG_DIR;

Log::Log4perl->init( "$EG_DIR/dupe-warning.conf" );

is($warnings, undef, "no warnings");