-
Notifications
You must be signed in to change notification settings - Fork 1
t/04_client_tests.t fails with perl 5.21.7 #18
Comments
Hello, I am reading the code and seems the problem is related to the global I will try to reproduce with perlbrew, then check if there is some Then I will try to write a small proof of concept and sent to the Thanks Tiago On Thu, Dec 25, 2014 at 6:28 PM, Slaven Rezić [email protected]
Tiago B. Peczenyj |
Hello I write this minimal test and check under 5.12.2 and 5.21.7 package Subject;
use Data::Dumper;
sub new {
bless {};
}
sub ping {
die "lol ($!)"
}
package main;
use strict;
use warnings;
use Data::Dumper;
use Test::More;
use Test::Exception;
use POSIX qw(ETIMEDOUT strerror);
my $client = Subject->new();
$! = ETIMEDOUT;
#debug
diag Dumper { ETIMEDOUT => ETIMEDOUT, error => $! };
my $errmsg = strerror(ETIMEDOUT);
throws_ok { $client->ping() } qr/lol \($errmsg\)/,
"should die";
done_testing; results:
IF we move the debug message to the line below POSIX::strerror, we discover the $! variable has been erased. And yet, the strerror has been changed between 5.21.6 and 5.21.7 Thanks for the report. |
An even smaller test case:
And I see the problem in A simple workaround would be to just "require locale" first. |
I open one ticket Thanks https://rt.perl.org/Ticket/Display.html?id=123503
|
this error is related to a bugus implementation of POSIX::strerror on this particular version. I will close this ticket and follot the 123503 ticket on perl.org |
Seems it was fixed https://rt.perl.org/Public/Bug/Display.html?id=123503 |
See http://matrix.cpantesters.org/?dist=Riak-Light for a pass/fail overview and http://www.cpantesters.org/cpan/report/d64550d2-8a73-11e4-8b82-bb06e1bfc7aa for a sample fail report. I don't see a simple reason why it's failing. If you think this is a perl regression, then please report at perl5-porters.
The text was updated successfully, but these errors were encountered: