New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix ext/Sys/Syslog/t/syslog.t #136 on cygwin #8935
Comments
From @rurbanThis is a bug report for perl from cygwin@cygwin.com, Attached patch fixes Without the syslog-ng daemon /dev/log and /dev/conslog are not writable The patch detects for cygwin an installed syslog-ng binary (service Flags: Site configuration information for perl 5.9.4: Configured by rurban at Wed Jun 20 02:16:19 GMT 2007. Summary of my perl5 (revision 5 version 9 subversion 4) configuration: Locally applied patches: @INC for perl 5.9.4: Environment for perl 5.9.4: PATH=/usr/bin:/usr/sbin:/usr/local/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/bin:/cygdrive/c/uti:/bin:/usr/lib/lapack |
From @rurbanpl-cyg-syslog-ng.patch--- perl-5.9.5/ext/Sys/Syslog/t/syslog.t.orig 2006-09-04 15:50:20.000000000 +0000
+++ perl-5.9.5/ext/Sys/Syslog/t/syslog.t 2007-06-20 20:20:56.765625000 +0000
@@ -181,7 +181,15 @@
# setlogsock() with "stream" and an undef path
$r = eval { setlogsock("stream", undef ) } || '';
is( $@, '', "setlogsock() called, with 'stream' and an undef path" );
-ok( $r, "setlogsock() should return true: '$r'" );
+if ($^O eq 'cygwin') {
+ if (-x '/usr/sbin/syslog-ng'){ #`/usr/bin/ps -W` =~ m{/usr/sbin/syslog-ng} taint problem
+ ok( $r, "setlogsock() on Cygwin with syslog-ng should return true: '$r'. Please do net start syslog-ng" );
+ } else {
+ nok( $r, "setlogsock() on Cygwin without syslog-ng should return false: '$r'" );
+ }
+} else {
+ ok( $r, "setlogsock() should return true: '$r'" );
+}
# setlogsock() with "stream" and an empty path
$r = eval { setlogsock("stream", '' ) } || '';
|
From @jdheddenReini Urban wrote:
This bug was also reported against Sys::Syslog: |
From @rurbanNote: |
From [Unknown Contact. See original ticket]Note: |
@rurban - Status changed from 'new' to 'open' |
From @smpetersOn Wed Jun 20 13:41:12 2007, jdhedden@cpan.org wrote:
Per the Sys-Syslog RT, "This issue has been resolved with Sys::Syslog 0.19". |
The RT System itself - Status changed from 'new' to 'open' |
@smpeters - Status changed from 'open' to 'resolved' |
p5p@spam.wizbit.be - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#43268 (status was 'resolved')
Searchable as RT43268$
The text was updated successfully, but these errors were encountered: