Debian Codegraph @

debian/patches/dont_load_windows_modules

raw
1 Description: Load Nagios::CheckLogfiles::Search::Eventlog only if we are on Windows.
2 Forwarded: https://github.com/lausser/check_logfiles/pull/77
3 Author: Hilmar Preuße <[email protected]>
4 Last-Update: 2023-01-19
5
6 --- check_logfiles.orig/t/040wevtutilfilt.t
7 +++ check_logfiles/t/040wevtutilfilt.t
8 @@ -10,7 +10,6 @@
9 use Cwd;
10 use lib "../plugins-scripts";
11 use Nagios::CheckLogfiles::Test;
12 -use Nagios::CheckLogfiles::Search::Eventlog;
13 use constant TESTDIR => ".";
14 use Data::Dumper;
15
16 @@ -31,6 +30,8 @@
17 plan tests => 4;
18 }
19
20 +use Nagios::CheckLogfiles::Search::Eventlog;
21 +
22 my $cl = Nagios::CheckLogfiles::Test->new({
23 protocolsdir => TESTDIR."/var/tmp",
24 seekfilesdir => TESTDIR."/var/tmp",
25 --- check_logfiles.orig/t/041wevtutil.t
26 +++ check_logfiles/t/041wevtutil.t
27 @@ -10,7 +10,6 @@
28 use Cwd;
29 use lib "../plugins-scripts";
30 use Nagios::CheckLogfiles::Test;
31 -use Nagios::CheckLogfiles::Search::Eventlog;
32 use constant TESTDIR => ".";
33
34 if (($^O ne "cygwin") and ($^O !~ /MSWin/)) {
35 @@ -20,6 +19,8 @@
36 plan tests => 12;
37 }
38
39 +use Nagios::CheckLogfiles::Search::Eventlog;
40 +
41 my $cl = Nagios::CheckLogfiles::Test->new({
42 protocolsdir => TESTDIR."/var/tmp",
43 seekfilesdir => TESTDIR."/var/tmp",
44 --- check_logfiles.orig/t/041wevtutilps.t
45 +++ check_logfiles/t/041wevtutilps.t
46 @@ -10,7 +10,6 @@
47 use Cwd;
48 use lib "../plugins-scripts";
49 use Nagios::CheckLogfiles::Test;
50 -use Nagios::CheckLogfiles::Search::Eventlog;
51 use constant TESTDIR => ".";
52
53 if (($^O ne "cygwin") and ($^O !~ /MSWin/)) {
54 @@ -20,6 +19,8 @@
55 plan tests => 7;
56 }
57
58 +use Nagios::CheckLogfiles::Search::Eventlog;
59 +
60 ######################################################
61 #
62 # powershell -Command "echo hihi"