Skip Menu |

This queue is for tickets about the REST-Application CPAN distribution.

Report information
The Basics
Id: 50266
Status: open
Priority: 0/
Queue: REST-Application

People
Owner: Nobody in particular
Requestors: toddr [...] null.net
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.992
Fixed in: (no value)



Subject: t/01-basic.t hanging after test 68 on Mac Snow Leopard (64bit)
$>prove -bvm t/01-basic.t t/01-basic.t .. 1..80 ok 1 - use REST::Application; ok 2 - use Tie::IxHash; ok 3 - use UNIVERSAL; ok 4 - use CGI; ... ok 67 - Testing getLastMatchPattern ok 68 - Testing getLastMatchPath The hang seems to be happening on this line (597): my $rest = REST::Application->new();
The failure in new appears to be happening on the ++ line. I split the code out to call CGI->new and this appears to be where the lock up happened. sub new { my ($proto, %args) = @_; my $class = ref($proto) ? ref($proto) : $proto; ++ my $self = bless({ __defaultQuery => CGI->new() }, $class); $self->setup(%args); return $self; } Any ideas?
From: ph1 [...] openstrike.co.uk
On Tue Oct 06 16:25:50 2009, todd_rinaldo wrote: Show quoted text
> Any ideas?
I've just run across this too. The problem appears to be that when REQUEST_METHOD is "POST", CGI.pm starts to read the request body and the stalling of the test script is a symptom of there being no request body in this case. You can send an EOT (^D on Linux) to get past this, or do as I ended up doing and run make test < /dev/null instead, which results in all tests passing. This is on perl 5.14.2 on x86_64-linux-thread-multi with version 3.52 of CGI.pm. Pete