Skip Menu |

This queue is for tickets about the XML-LibXSLT CPAN distribution.

Report information
The Basics
Id: 71456
Status: resolved
Priority: 0/
Queue: XML-LibXSLT

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

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



Subject: tests fail- $port not initialized in 14security.t
When running 'dmake test' the tests fail with this output: C:\strawberry\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib\lib', 'blib\arch')" t/*.t t/01basic.t ...... t/01basic.t ...... 1/4 Compiled against: libxslt 10126, libxml2 20703 Running: libxslt 10126, libxml2 20703 Compiled with EXSLT: yes t/01basic.t ...... ok t/02dromeds.t .... ok t/03input.t ...... ok t/04params.t ..... ok t/05quick.t ...... ok t/06entities.t ... ok t/06output.t ..... ok t/07blankdoc.t ... ok t/08literal.t .... ok t/09exslt.t ...... ok t/10functions.t .. ok t/11utf8.t ....... ok t/12import.t ..... ok t/13error.t ...... ok t/14security.t ... 1/26 Use of uninitialized value $port in concatenation (.) or string at t/14security.t line 197. # Failed test 24 in t/14security.t at line 203 # t/14security.t line 203 is: ok($@ =~ /unable to save to \Q$file\E/); t/14security.t ... Failed 1/26 subtests t/15misc.t ....... ok Test Summary Report ------------------- t/14security.t (Wstat: 0 Tests: 26 Failed: 1) Failed test: 24 Files=16, Tests=231, 9 wallclock secs ( 0.33 usr + 0.27 sys = 0.59 CPU) Result: FAIL Failed 1/16 test programs. 1/231 subtests failed. dmake: Error code 255, while making 'test_dynamic'
Hello, thanks for your report. On Tue Oct 04 20:22:06 2011, NGLENN wrote: Show quoted text
> When running 'dmake test' the tests fail with this output: > > C:\strawberry\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" > "test_harness(0, > 'blib\lib', 'blib\arch')" t/*.t > t/01basic.t ...... > t/01basic.t ...... 1/4 > Compiled against: libxslt 10126, libxml2 20703 > Running: libxslt 10126, libxml2 20703 > Compiled with EXSLT: yes > > t/01basic.t ...... ok > t/02dromeds.t .... ok > t/03input.t ...... ok > t/04params.t ..... ok > t/05quick.t ...... ok > t/06entities.t ... ok > t/06output.t ..... ok > t/07blankdoc.t ... ok > t/08literal.t .... ok > t/09exslt.t ...... ok > t/10functions.t .. ok > t/11utf8.t ....... ok > t/12import.t ..... ok > t/13error.t ...... ok > t/14security.t ... 1/26 Use of uninitialized value $port in > concatenation (.) or > string at t/14security.t line 197. > # Failed test 24 in t/14security.t at line 203 > # t/14security.t line 203 is: ok($@ =~ /unable to save to \Q$file\E/); > t/14security.t ... Failed 1/26 subtests > t/15misc.t ....... ok >
This happens due to the following lines: my $sock = IO::Socket::INET->new( Proto => 'tcp', ); my $port = $sock->sockport(); $file = "http://localhost:${port}/allow.xml"; They were done to make sure that the URL refers to a non-available port, but apparently it does not work properly everywhere. Anyway, I'll ask about it on stackoverflow.com etc. and implement a fix. Regards, Shlomi Fish Show quoted text
> Test Summary Report > ------------------- > t/14security.t (Wstat: 0 Tests: 26 Failed: 1) > Failed test: 24 > Files=16, Tests=231, 9 wallclock secs ( 0.33 usr + 0.27 sys = 0.59 > CPU) > Result: FAIL > Failed 1/16 test programs. 1/231 subtests failed. > dmake: Error code 255, while making 'test_dynamic'
Hi NGLENN, please see if the fix in XML-LibXSLT-1.73.tar.gz (which was now uploaded to CPAN) fixes the problem for you. Regards, -- Shlomi Fish
Resolving as CLOSED due to inactivity. Please comment on this ticket or file a new ticket to reopen.