Skip Menu |

This queue is for tickets about the Weather-NHC-TropicalCyclone CPAN distribution.

Report information
The Basics
Id: 133425
Status: open
Priority: 0/
Queue: Weather-NHC-TropicalCyclone

People
Owner: DANX [...] cpan.org
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in:
  • 0.16
  • 0.17
  • 0.18
Fixed in: 0.18



Subject: Wrong usage of stat() index in t/unit/lib-Weather-NHC-TropicalCyclone-ForecastAdvisory/01-basic.t
The test suite fails on my freebsd smokers: ... # Failed test 'Output file currently of size 0' # at t/unit/lib-Weather-NHC-TropicalCyclone-ForecastAdvisory/01-basic.t line 17. # got: '0' # expected: '-1' # Looks like you failed 1 test of 23. # t/unit/lib-Weather-NHC-TropicalCyclone-ForecastAdvisory/01-basic.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/23 subtests ... Problem is that stat(...)[6] is used, but it should be stat(...)[7]. From perldoc -f stat: ... 6 rdev the device identifier (special files only) 7 size total size of file, in bytes ...
Thank you. Resolved. On Sat Sep 26 08:12:41 2020, SREZIC wrote: Show quoted text
> The test suite fails on my freebsd smokers: > > ... > # Failed test 'Output file currently of size 0' > # at t/unit/lib-Weather-NHC-TropicalCyclone-ForecastAdvisory/01- > basic.t line 17. > # got: '0' > # expected: '-1' > # Looks like you failed 1 test of 23. > # > t/unit/lib-Weather-NHC-TropicalCyclone-ForecastAdvisory/01-basic.t .. > Dubious, test returned 1 (wstat 256, 0x100) > Failed 1/23 subtests > ... > > Problem is that stat(...)[6] is used, but it should be stat(...)[7]. > From perldoc -f stat: > > ... > 6 rdev the device identifier (special files only) > 7 size total size of file, in bytes > ...