Skip Menu |

This queue is for tickets about the Text-UnAbbrev CPAN distribution.

Report information
The Basics
Id: 105447
Status: new
Priority: 0/
Queue: Text-UnAbbrev

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

Bug Information
Severity: (no value)
Broken in:
  • 0.02
  • 0.03
Fixed in: (no value)



Subject: Tests fail on BSD systems because directories are not skipped
The t/lookup.t test fails on most BSD systems (freebsd, netbsd, gnukfreebsd), see http://matrix.cpantesters.org/?dist=Text-UnAbbrev%200.02 I think the reason is because directory filehandles are differently handled on linux and freebsd: reading from such a filehandle is not possible on linux systems, while it is successful on freebsd systems, but returns only garbage causing the subsequent tests to fail.
On 2015-06-23 14:29:04, SREZIC wrote: Show quoted text
> The t/lookup.t test fails on most BSD systems (freebsd, netbsd, > gnukfreebsd), see http://matrix.cpantesters.org/?dist=Text- > UnAbbrev%200.02 > > I think the reason is because directory filehandles are differently > handled on linux and freebsd: reading from such a filehandle is not > possible on linux systems, while it is successful on freebsd systems, > but returns only garbage causing the subsequent tests to fail.
Probably adding a "-f" test to https://metacpan.org/source/JIMMY/Text-UnAbbrev-0.03/lib/Text/UnAbbrev.pm#L29 would fix the problem.