Skip Menu |
 

This queue is for tickets about the Nagios-Plugin CPAN distribution.

Report information
The Basics
Id: 57709
Status: resolved
Priority: 0/
Queue: Nagios-Plugin

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.34
Fixed in: (no value)



Subject: Test suite fails with Test-Simple-0.95_02
Download (untitled) / with headers
text/plain 564b
The test suite fails on my system only if Test-Simple-0.95_02 is installed. With the latest stable version (0.94) the tests pass. Here's the log of the failed tests: # Failed test 'warn okay' # at t/Nagios-Plugin-Performance.t line 205. # got: '0' # expected: '0' # Failed test 'crit okay' # at t/Nagios-Plugin-Performance.t line 206. # got: '0' # expected: '0' # Looks like you failed 2 tests of 231. t/Nagios-Plugin-Performance.t ..... Dubious, test returned 2 (wstat 512, 0x200) Failed 2/231 subtests Regards, Slaven
Download (untitled) / with headers
text/plain 1000b
On Fri May 21 06:59:52 2010, SREZIC wrote: Show quoted text
> The test suite fails on my system only if Test-Simple-0.95_02 is > installed. With the latest stable version (0.94) the tests pass. > > Here's the log of the failed tests: > > # Failed test 'warn okay' > # at t/Nagios-Plugin-Performance.t line 205. > # got: '0' > # expected: '0' > > # Failed test 'crit okay' > # at t/Nagios-Plugin-Performance.t line 206. > # got: '0' > # expected: '0' > # Looks like you failed 2 tests of 231. > t/Nagios-Plugin-Performance.t ..... > Dubious, test returned 2 (wstat 512, 0x200) > Failed 2/231 subtests > > Regards, > Slaven
Fix for changes to stringification in Test::Simple 0.96 t/Nagios-Plugin-Performance.t 205,206c205,206 < is( $p[0]->threshold->warning, "0", "warn okay"); < is( $p[0]->threshold->critical, "0", "crit okay"); --- Show quoted text
> cmp_ok( ($p[0]->threshold->warning).q{}, 'eq' , '0', "warn okay"); > cmp_ok( ($p[0]->threshold->critical).q{}, 'eq', '0', "crit okay");
Thanks. Have recreated and will push a new version out today


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.