Skip Menu |

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

Report information
The Basics
Id: 65803
Status: resolved
Priority: 0/
Queue: REST-Client

People
Owner: Nobody in particular
Requestors: adamk [...] cpan.org
cpan [...] barely3am.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: (no value)
Fixed in: (no value)



Subject: REST::Client cannot be installed on Windows
REST::Client uses HTTP::Server::Simple for testing. This module is known to behave erractically and hang forever on Windows. As a result, the REST::Client tests hang forever and prevent installation on Windows. Please add the HTTP::Server::Simple depedency only on unix, and skip the relevant tests on Windows.
Windows? What is "Windows?" :) I'll see if I get this fixed up soon. On Wed Feb 16 22:31:09 2011, ADAMK wrote: Show quoted text
> REST::Client uses HTTP::Server::Simple for testing. > > This module is known to behave erractically and hang forever on
Windows. Show quoted text
> > As a result, the REST::Client tests hang forever and prevent > installation on Windows. > > Please add the HTTP::Server::Simple depedency only on unix, and skip
the Show quoted text
> relevant tests on Windows. >
CC: adamk [...] cpan.org
Subject: Re: [rt.cpan.org #65803] REST::Client cannot be installed on Windows
Date: Fri, 18 Feb 2011 15:47:17 +1100
To: bug-REST-Client [...] rt.cpan.org
From: Adam Kennedy <adamkennedybackup [...] gmail.com>
A platform that a lot of people like to write ad-hoc desktop or utility software on that talks to REST services :) On 17 February 2011 16:48, Miles Crawford via RT <bug-REST-Client@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=65803 > > > Windows? What is "Windows?" :) > > I'll see if I get this fixed up soon. > > On Wed Feb 16 22:31:09 2011, ADAMK wrote:
>> REST::Client uses HTTP::Server::Simple for testing. >> >> This module is known to behave erractically and hang forever on
> Windows.
>> >> As a result, the REST::Client tests hang forever and prevent >> installation on Windows. >> >> Please add the HTTP::Server::Simple depedency only on unix, and skip
> the
>> relevant tests on Windows. >>
> > > >
HTTP::Server::Simple was always optional, but I do see that if you already had it installed on windows, i would make use of it. I will now only run the tests if you are not on windows and have server::simple installed. REST-Client-217 is working its way through PAUSE right now, could you let me know if it takes care of your issue? Thanks! -m On Thu Feb 17 23:47:25 2011, adam@ali.as wrote: Show quoted text
> A platform that a lot of people like to write ad-hoc desktop or > utility software on that talks to REST services :) > > On 17 February 2011 16:48, Miles Crawford via RT > <bug-REST-Client@rt.cpan.org> wrote:
> > <URL: https://rt.cpan.org/Ticket/Display.html?id=65803 > > > > > Windows? What is "Windows?" :) > > > > I'll see if I get this fixed up soon. > > > > On Wed Feb 16 22:31:09 2011, ADAMK wrote:
> >> REST::Client uses HTTP::Server::Simple for testing. > >> > >> This module is known to behave erractically and hang forever on
> > Windows.
> >> > >> As a result, the REST::Client tests hang forever and prevent > >> installation on Windows. > >> > >> Please add the HTTP::Server::Simple depedency only on unix, and
skip Show quoted text
> > the
> >> relevant tests on Windows. > >>
> > > > > > > >
Subject: Re: [rt.cpan.org #65803] REST::Client cannot be installed on Windows
Date: Tue, 24 May 2011 20:38:03 +1000
To: bug-REST-Client [...] rt.cpan.org
From: Adam Kennedy <adamkennedybackup [...] gmail.com>
Works for me, consider the bug resolved. On 22 May 2011 07:57, Miles Crawford via RT <bug-REST-Client@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=65803 > > > HTTP::Server::Simple was always optional, but I do see that if you > already had it installed on windows, i would make use of it.  I will now > only run the tests if you are not on windows and have server::simple > installed. > > REST-Client-217 is working its way through PAUSE right now, could you > let me know if it takes care of your issue? > > Thanks! > > -m > > > > On Thu Feb 17 23:47:25 2011, adam@ali.as wrote:
>> A platform that a lot of people like to write ad-hoc desktop or >> utility software on that talks to REST services :) >> >> On 17 February 2011 16:48, Miles Crawford via RT >> <bug-REST-Client@rt.cpan.org> wrote:
>> > <URL: https://rt.cpan.org/Ticket/Display.html?id=65803 > >> > >> > Windows? What is "Windows?" :) >> > >> > I'll see if I get this fixed up soon. >> > >> > On Wed Feb 16 22:31:09 2011, ADAMK wrote:
>> >> REST::Client uses HTTP::Server::Simple for testing. >> >> >> >> This module is known to behave erractically and hang forever on
>> > Windows.
>> >> >> >> As a result, the REST::Client tests hang forever and prevent >> >> installation on Windows. >> >> >> >> Please add the HTTP::Server::Simple depedency only on unix, and
> skip
>> > the
>> >> relevant tests on Windows. >> >>
>> > >> > >> > >> >
> > > >
the following is against OS 10.5 (and I think it was reported to be for 10.6), sort of tested with CentOS 6 too: Writing Makefile for REST::Client cp lib/REST/Client.pm blib/lib/REST/Client.pm Manifying blib/man3/REST::Client.3pm MCRAWFOR/REST-Client-236.tar.gz /usr/bin/make -- OK 'YAML' not installed, will not store persistent state Running make test PERL_DL_NONLAZY=1 /opt/local/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/*.t t/basic.t .. # Won't run tests because: Can't locate HTTP/Server/Simple.pm in @INC (@INC contains: ../lib /Users/wes/.cpan/build/REST-Client-236-dOZJTx/inc /Users/wes/.cpan/build/REST-Client-236-dOZJTx/blib/lib /Users/wes/.cpan/build/REST-Client-236-dOZJTx/blib/arch /opt/local/lib/perl5/site_perl/5.12.3/darwin-multi-2level /opt/local/lib/perl5/site_perl/5.12.3 /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level /opt/local/lib/perl5/vendor_perl/5.12.3 /opt/local/lib/perl5/5.12.3/darwin- multi-2level /opt/local/lib/perl5/5.12.3 /opt/local/lib/perl5/site_perl /opt/local/lib/perl5/vendor_perl .) at t/basic.t line 13. t/basic.t .. 1/39 # Failed test 'planned to run 39 but done_testing() expects 40' # at /opt/local/lib/perl5/5.12.3/Test/More.pm line 221. # Looks like you planned 39 tests but ran 41. # Looks like you failed 1 test of 41 run. t/basic.t .. Dubious, test returned 1 (wstat 256, 0x100) All 39 subtests passed (less 40 skipped subtests: -1 okay) Test Summary Report ------------------- t/basic.t (Wstat: 256 Tests: 41 Failed: 2) Failed tests: 40-41 Non-zero exit status: 1 Parse errors: Bad plan. You planned 39 tests but ran 41. Files=1, Tests=41, 0 wallclock secs ( 0.02 usr 0.01 sys + 0.02 cusr 0.00 csys = 0.05 CPU) Result: FAIL Failed 1/1 test programs. 2/41 subtests failed. make: *** [test_dynamic] Error 1 MCRAWFOR/REST-Client-236.tar.gz /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports MCRAWFOR/REST-Client-236.tar.gz Running make install make test had returned bad status, won't install without force I think either you need to require HTTP::Server... in the Makefile.PL and be done with it, or fix your basic.t magic... :) thx.
Not so much "basic.t magic" as "basic.t 39 is not actually equal to 40" Fixed in rest client 240 thanks for catching that.
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/*.t t/basic.t .. 1/? # Looks like you planned 40 tests but ran 39. t/basic.t .. Dubious, test returned 255 (wstat 65280, 0xff00) Failed 1/40 subtests Test Summary Report ------------------- t/basic.t (Wstat: 65280 Tests: 39 Failed: 0) Non-zero exit status: 255 Parse errors: Bad plan. You planned 40 tests but ran 39. Files=1, Tests=39, 0 wallclock secs ( 0.02 usr 0.01 sys + 0.15 cusr 0.03 csys = 0.21 CPU) Result: FAIL Failed 1/1 test programs. 0/39 subtests failed. make: *** [test_dynamic] Error 255 still an issue in 240 :) modifying t/basic.t line 6 to 39 seems to fix it.
Fixed test count issue in 243