]> git.pld-linux.org Git - packages/perl.git/commitdiff
- update t/syslog.t to fail if /dev/log does not exist
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 26 Feb 2008 07:32:15 +0000 (07:32 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    perl-t-syslog.patch -> 1.1

perl-t-syslog.patch [new file with mode: 0644]

diff --git a/perl-t-syslog.patch b/perl-t-syslog.patch
new file mode 100644 (file)
index 0000000..c41b5a3
--- /dev/null
@@ -0,0 +1,15 @@
+--- perl-5.10.0/ext/Sys/Syslog/t/syslog.t~     2008-02-26 07:24:29.000000000 +0000
++++ perl-5.10.0/ext/Sys/Syslog/t/syslog.t      2008-02-26 07:24:34.000000000 +0000
+@@ -201,7 +201,11 @@
+         }
+     }
+     else  {
+-        ok( $r, "setlogsock() should return true: '$r'" );
++              if (-r "/dev/log") {
++                      ok( $r, "setlogsock() should return true: '$r'" );
++              } else {
++                      ok( !$r, "setlogsock() should return false: '$r'" );
++        }
+     }
+     # setlogsock() with "stream" and an empty path
This page took 0.031706 seconds and 4 git commands to generate.