Paul Evans via RT wrote:
Show quoted text> <URL:
http://rt.cpan.org/Ticket/Display.html?id=38476 >
>
> On Thu Aug 14 08:40:50 2008, david@davidfavor.com wrote:
>> t/52loop-listen.................Test died early - listen actually
> succeeded
>> # Looks like you planned 10 tests but only ran 9.
>> # Looks like your test died just after 9.
>> Dubious, test returned 255 (wstat 65280, 0xff00)
>> Failed 1/10 subtests
>> t/60sequencer-client............ok
>>
>> If you require more information email me.
>
> That's quite interesting. That particular test is the one at the end of
> the script, which tries to listen on tcp/22 or tcp/80, hoping that at
> least one will fail, either from being not-root or having something else
> listening there. For it to succeed, you'd have to be root, and not
> running a web or ssh server, _and_ the previous test to see if those
> ports are available would have to fail.
>
> Can you let me know please
>
> * What OS
net1#uname -a
Linux net1.coolsurf.com 2.6.24.4-64.fc8 #1 SMP Sat Mar 29 09:54:46 EDT 2008 i686 i686 i386 GNU/Linux
Show quoted text> * If you're running the test script as root [if applicable]
Yes.
Show quoted text> * If you're running a web server on port 80 or an SSH server on port 22
I have a Web server running on port 80.
I just moved my sshd to an odd port to reduce hack attempts.
If I move sshd back to port 22 the test works. Move it to another
port and the test fails.
Show quoted text> In the meantime, you could try just adding the port number to the
> message; like this:
>
> --- t/52loop-listen.t 2008-06-17 15:33:47 +0000
> +++ t/52loop-listen.t 2008-08-14 21:33:28 +0000
> @@ -124,7 +124,7 @@
>
> on_resolve_error => sub { die "Test died early - resolve error
> $_[0]\n"; },
>
> - on_listen => sub { die "Test died early - listen actually
> succeeded\n"; },
> + on_listen => sub { die "Test died early - listen on port $badport
> actually succeeded\n"; },
>
> on_accept => sub { "DUMMY" }, # really hope this doesn't happen ;)
>
> and run the test again, see which port it claims.
>
--
Love feeling your best ever, all day, every day?
Click
http://RadicalHealth.com/join for the easy way.