Skip Menu |

This queue is for tickets about the Test-TempFile CPAN distribution.

Report information
The Basics
Id: 128472
Status: open
Priority: 0/
Queue: Test-TempFile

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

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



Subject: Tests fail with non-English locale
With a non-English locale (e.g. LC_ALL=de_DE.UTF-8) and an older perl (< 5.22) t/basic.t fails: ... # Failed test 'filehandle has correct mode' # at t/basic.t line 72. # expecting: Regexp ((?^:Bad file descriptor)) # found: Ungültiger Dateideskriptor at t/basic.t line 71. # Looks like you failed 1 test of 6. # Failed test 'can get a filehandle for the tempfile' # at t/basic.t line 80. # Looks like you failed 1 test of 7. t/basic.t ....... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/7 subtests ...
On Sun Feb 10 15:55:30 2019, SREZIC wrote: Show quoted text
> With a non-English locale (e.g. LC_ALL=de_DE.UTF-8) and an older perl > (< 5.22) t/basic.t fails: > > ... > # Failed test 'filehandle has correct mode' > # at t/basic.t line 72. > # expecting: Regexp ((?^:Bad file descriptor)) > # found: Ungültiger Dateideskriptor at t/basic.t line 71.
D'oh, thanks. The test is trying to ensure a read-only handle is returned. My first thought was to check if $! == EBADF, but that might change depending on the underlying filesystem? For now I will change it to assert that the print() fails without checking the actual error. Kind regards, Rich