Skip Menu |

This queue is for tickets about the Crypt-SSLeay CPAN distribution.

Report information
The Basics
Id: 82715
Status: resolved
Priority: 0/
Queue: Crypt-SSLeay

People
Owner: nanis [...] runu.moc.invalid
Requestors: CHORNY [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in:
  • 0.64
  • 0.65_02
Fixed in: 0.72



Subject: fails with non-English locale
I've installed Debian with Russian language. Tests fail /00-basic.t .... ok # Failed test 'Net::SSL->new' # at t/01-connect.t line 28. # Connect failed: connect: В соединении отказано; В соединении отказано at t/01-connect.t line 11. # Looks like you failed 1 test of 8. t/01-connect.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/8 subtests (less 7 skipped subtests: 0 okay) # Reading configuration from 'test.config' on linux # network_tests : 1 # [RT #73755] Cheat by disabling LWP::UserAgent host verification http://www.cpantesters.org/cpan/report/2c271510-598b-11e2-ba34-bc13acde11a1 http://www.cpantesters.org/cpan/report/0ba798e4-4a0b-11e2-b893-88232bada85c With LANG=C tests pass. -- Alexandr Ciornii, http://chorny.net
me too. fvm bokutin % make test PERL_DL_NONLAZY=1 /usr/home/bokutin/perl5/perlbrew/perls/5.16.3-threaded/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00-basic.t .... ok t/01-connect.t .. 1/8 # Failed test 'Net::SSL->new' # at t/01-connect.t line 28. # Connect failed: connect: 無効な引数です; 無効な引数です at t/01-connect.t line 11. # Looks like you failed 1 test of 8. t/01-connect.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/8 subtests (less 7 skipped subtests: 0 okay) t/02-live.t ..... # Reading configuration from 'test.config' on freebsd # network_tests : 0 t/02-live.t ..... skipped: Network tests disabled Test Summary Report ------------------- t/01-connect.t (Wstat: 256 Tests: 8 Failed: 1) Failed test: 1 Non-zero exit status: 1 Files=3, Tests=20, 1 wallclock secs ( 0.03 usr 0.01 sys + 0.15 cusr 0.09 csys = 0.27 CPU) Result: FAIL Failed 1/3 test programs. 1/20 subtests failed. *** [test_dynamic] Error code 255 Stop in /usr/home/bokutin/.cpan/build/Crypt-SSLeay-0.64-tm7hdP. fvm bokutin % LANG=C make test PERL_DL_NONLAZY=1 /usr/home/bokutin/perl5/perlbrew/perls/5.16.3-threaded/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00-basic.t .... ok t/01-connect.t .. ok t/02-live.t ..... # Reading configuration from 'test.config' on freebsd # network_tests : 0 t/02-live.t ..... skipped: Network tests disabled All tests successful. Files=3, Tests=20, 1 wallclock secs ( 0.01 usr 0.03 sys + 0.18 cusr 0.05 csys = 0.27 CPU) Result: PASS fvm bokutin %
I wrote a patch. fvm bokutin % diff -u t/01-connect.t.orig t/01-connect.t --- t/01-connect.t.orig 2013-07-13 18:19:06.000000000 +0900 +++ t/01-connect.t 2013-07-13 18:19:08.000000000 +0900 @@ -2,6 +2,8 @@ use Test::More tests => 8; use Net::SSL; +use POSIX; +setlocale(LC_MESSAGES, 'C'); # ensure no proxification takes place $ENV{NO_PROXY} = '127.0.0.1'; fvm bokutin % make test PERL_DL_NONLAZY=1 /usr/home/bokutin/perl5/perlbrew/perls/5.16.3-threaded/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00-basic.t .... ok t/01-connect.t .. ok t/02-live.t ..... # Reading configuration from 'test.config' on freebsd # network_tests : 0 t/02-live.t ..... skipped: Network tests disabled All tests successful. Files=3, Tests=20, 0 wallclock secs ( 0.02 usr 0.02 sys + 0.16 cusr 0.09 csys = 0.28 CPU) Result: PASS fvm bokutin %
Hello: Thank you for the report and patch. I believe a similar fix was incorporated with the following commit which will be included in the next development release: https://github.com/nanis/Crypt-SSLeay/commit/ba6dec42a571b0f06f3d55b7aaa6dfbca7747c83 -- Sinan On Sat Jul 13 05:21:19 2013, bokutin wrote: Show quoted text
> I wrote a patch. > > fvm bokutin % diff -u t/01-connect.t.orig t/01-connect.t > --- t/01-connect.t.orig 2013-07-13 18:19:06.000000000 +0900 > +++ t/01-connect.t 2013-07-13 18:19:08.000000000 +0900 > @@ -2,6 +2,8 @@ > use Test::More tests => 8; > > use Net::SSL; > +use POSIX; > +setlocale(LC_MESSAGES, 'C'); > > # ensure no proxification takes place > $ENV{NO_PROXY} = '127.0.0.1'; > fvm bokutin % make test > PERL_DL_NONLAZY=1 /usr/home/bokutin/perl5/perlbrew/perls/5.16.3- > threaded/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, > 'blib/lib', 'blib/arch')" t/*.t > t/00-basic.t .... ok > t/01-connect.t .. ok > t/02-live.t ..... # Reading configuration from 'test.config' on > freebsd > # network_tests : 0 > t/02-live.t ..... skipped: Network tests disabled > All tests successful. > Files=3, Tests=20, 0 wallclock secs ( 0.02 usr 0.02 sys + 0.16 cusr > 0.09 csys = 0.28 CPU) > Result: PASS > fvm bokutin %