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
...