wjackson/anyevent-hiredis

Tests fail. Locale-related

Closed this issue · 1 comments

lamoz commented

Here is test log in my cpan shell:

Running install for module 'Hiredis::Raw'
Running make for W/WH/WHITNEY/Hiredis-Raw-0.05.tar.gz
  Has already been unwrapped into directory /home/lamoz/.cpan/build/Hiredis-Raw-0.05-fn2CZb
  Has already been made
Running make test
PERL_DL_NONLAZY=1 "/home/lamoz/perl5/perlbrew/perls/perl-5.10.1/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/*.t
t/async.t ...... ok    
t/bug-1.t ...... 1/? 
#   Failed test 'connection refused error'
#   at t/bug-1.t line 21.
#                   'В соединении отказано'
#     doesn't match '(?i-xsm:Connection refused)'
# Looks like you failed 1 test of 4.
t/bug-1.t ...... Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/4 subtests 
t/connect.t .... 1/? 
#   Failed test 'connection error'
#   at t/connect.t line 28.
#                   'В соединении отказано'
#     doesn't match '(?-xism:Connection refused)'
# Looks like you failed 1 test of 4.
t/connect.t .... Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/4 subtests 
t/constants.t .. ok    
t/load.t ....... ok   

Seems that error strings are locale-dependant while tests are not. 'В соединении отказано' means 'Connection refused' in Russian.

lamoz commented

Sorry. That was Hiredir::Raw bug. Here is for AnyEvent::Hiredis:

Running install for module 'AnyEvent::Hiredis'
Running make for W/WH/WHITNEY/AnyEvent-Hiredis-0.05.tar.gz
  Has already been unwrapped into directory /home/lamoz/.cpan/build/AnyEvent-Hiredis-0.05-ZlauT2
  Has already been made
Running make test
PERL_DL_NONLAZY=1 "/home/lamoz/perl5/perlbrew/perls/perl-5.10.1/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/basic.t .. 13/? 
#   Failed test 'got connection exception'
#   at t/basic.t line 80.
#                   'В соединении отказано'
#     doesn't match '(?-xism:Connection refused)'
# Looks like you failed 1 test of 15.
t/basic.t .. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/15 subtests