File: 058Warnings.t

package info (click to toggle)
liblog-log4perl-perl 1.48-1%2Bdeb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,900 kB
  • sloc: perl: 6,449; makefile: 9
file content (25 lines) | stat: -rw-r--r-- 425 bytes parent folder | download | duplicates (5)
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");