Subject: | Bug in test t/01-log.t |
Test failure is seen as follows when testing Dancer-Logger-Syslog-0.2
using perl 5.16.1 on Solaris 10 SPARC 32-bit.
% prove -I$PERL5LIB -v t/01-log.t
t/01-log.t ..
1..8
ok 1 - Dancer::Logger::Syslog object
ok 2 - The object isa Dancer::Logger::Syslog
ok 3 - Dancer::Logger::Syslog->can(...)
ok 4 # skip Need a SysLog connection to run last tests
ok 5 # skip Need a SysLog connection to run last tests
ok 6 # skip Need a SysLog connection to run last tests
ok 7 # skip Need a SysLog connection to run last tests
# Looks like you planned 8 tests but ran 7.
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 1/8 subtests
(less 4 skipped subtests: 3 okay)
Test Summary Report
-------------------
t/01-log.t (Wstat: 65280 Tests: 7 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 8 tests but ran 7.
Files=1, Tests=7, 0 wallclock secs ( 0.04 usr 0.01 sys + 0.18 cusr
0.02 csys = 0.25 CPU)
Result: FAIL
The attached patch clears up the failure for me.
Subject: | Dancer-Logger-Syslog-patch.txt |
--- Dancer-Logger-Syslog-0.2/t/01-log.t~ 2010-10-05 03:55:17.000000000 -0500
+++ Dancer-Logger-Syslog-0.2/t/01-log.t 2012-09-27 00:52:23.179954000 -0500
@@ -14,7 +14,7 @@
SKIP: {
eval { $l->_log(debug => "dummy test") };
- skip "Need a SysLog connection to run last tests", 4
+ skip "Need a SysLog connection to run last tests", 5
if $@ =~ /no connection to syslog available/;
ok($l->_log(debug => "Perl Dancer test message 1/4"), "_log works");