Subject: | t/02_request/14_uploads.t fails under Perl 5.17.9 and above |
Test t/02_request/14_uploads.t fails under Perl 5.17.9 and above with the errors
t/02_request/14_uploads.t .. Strings with code points over 0xFF may not be mapped into in-memory file handles
core - request - Unknown error reading input: Bad file descriptor at t/02_request/14_uploads.old line 59.
# Looks like your test exited with 9 before it could output anything.
t/02_request/14_uploads.old .. Dubious, test returned 9 (wstat 2304, 0x900)
Failed 21/21 subtests
It appears that with 5.17.9 Perl started enforcing the notion that a file is bytes (or octets, if you prefer) rather than characters, and therefore can not contain "characters" whose code is greater than 255.
The attached patch fixes the problem, at least under relatively recent Perls. It is probably overly verbose, but I did not want to use any facilities that were not already in use in the test, to increase the chance that it would work under older Perls.
The assigned severity reflects the fact that, though it prevents installation without a 'force', I believe the problem is with the test rather than with Dancer, and that the problem only manifests (so far!) in a development version of Perl.