File: disable_syslog.patch

package info (click to toggle)
libprpc-perl 0.1005-21
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, stretch, wheezy
  • size: 244 kB
  • ctags: 66
  • sloc: perl: 1,015; makefile: 2
file content (78 lines) | stat: -rw-r--r-- 2,313 bytes parent folder | download
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
Author: Christian Hammers <ch@debian.org>
Description: Skipping tests as there is no running syslog in the autobuilder
environment.
Bug-Debian: http://bugs.debian.org/262421

Author: gregor herrmann <gregoa@debian.org>
Description: remove the syslogging instead of disabling the tests

--- a/t/client.t
+++ b/t/client.t
@@ -41,12 +41,6 @@
 
     $SIG{'PIPE'} = sub { print STDERR "Got signal PIPE.\n"; };
 
-    if (defined(&Sys::Syslog::setlogsock)  &&
-	defined(&Sys::Syslog::_PATH_LOG)) {
-        Sys::Syslog::setlogsock('unix');
-    }
-    Sys::Syslog::openlog('client.t', 'pid', 'daemon');
-
     #
     #   We'd prefer to do the following as part of the Server()
     #   function. This would be fine, if we'd bind on a well
--- a/t/noStorableOo.t
+++ b/t/noStorableOo.t
@@ -42,12 +42,6 @@
 
     $SIG{'PIPE'} = sub { print STDERR "Got signal PIPE.\n"; };
 
-    if (defined(&Sys::Syslog::setlogsock)  &&
-	defined(&Sys::Syslog::_PATH_LOG)) {
-        Sys::Syslog::setlogsock('unix');
-    }
-    Sys::Syslog::openlog('client.t', 'pid', 'daemon');
-
     #
     #   We'd prefer to do the following as part of the Server()
     #   function. This would be fine, if we'd bind on a well
--- a/t/encrypt.t
+++ b/t/encrypt.t
@@ -57,12 +57,6 @@
 
     $SIG{'PIPE'} = sub { print STDERR "Got signal PIPE.\n"; };
 
-    if (defined(&Sys::Syslog::setlogsock)  &&
-	defined(&Sys::Syslog::_PATH_LOG)) {
-        Sys::Syslog::setlogsock('unix');
-    }
-    Sys::Syslog::openlog('client.t', 'pid', 'daemon');
-
     #
     #   We'd prefer to do the following as part of the Server()
     #   function. This would be fine, if we'd bind on a well
--- a/t/lib.pl
+++ b/t/lib.pl
@@ -36,7 +36,6 @@
 use RPC::pServer;
 use RPC::pClient;
 use IO::Socket();
-use Sys::Syslog();
 
 
 ############################################################################
--- a/t/noStorableOoEnc.t
+++ b/t/noStorableOoEnc.t
@@ -58,12 +58,6 @@
 
     $SIG{'PIPE'} = sub { print STDERR "Got signal PIPE.\n"; };
 
-    if (defined(&Sys::Syslog::setlogsock)  &&
-	defined(&Sys::Syslog::_PATH_LOG)) {
-        Sys::Syslog::setlogsock('unix');
-    }
-    Sys::Syslog::openlog('client.t', 'pid', 'daemon');
-
     #
     #   We'd prefer to do the following as part of the Server()
     #   function. This would be fine, if we'd bind on a well