File: fix-test-init.patch

package info (click to toggle)
libtest-log4perl-perl 0.1001-4
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 132 kB
  • ctags: 25
  • sloc: perl: 562; makefile: 2
file content (18 lines) | stat: -rw-r--r-- 601 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Author: Tim Retout <tim@retout.co.uk>
Description: Initialize logger object in basic test.
 This is required from Log::Log4perl 0.22 onwards.

Index: libtest-log4perl-perl/t/01basic.t
===================================================================
--- libtest-log4perl-perl.orig/t/01basic.t	2009-08-09 16:13:57.000000000 +0100
+++ libtest-log4perl-perl/t/01basic.t	2009-08-09 16:14:15.000000000 +0100
@@ -3,7 +3,8 @@
 use strict;
 use warnings;
 
-use Log::Log4perl;
+use Log::Log4perl qw(:easy);
+Log::Log4perl->easy_init($DEBUG);
 # do some setup here...honest guv
 
 use Test::More tests => 9;