Skip Menu |

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

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

People
Owner: DMITRI [...] cpan.org
Requestors: GHENRY [...] cpan.org
Cc:
AdminCc:

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



Subject: 80-timeout.t fails
80-timeout.t fails: prove -v -Ilib t/80-timeout.t t/80-timeout....1..8 at /usr/lib/perl5/vendor_perl/5.8.8/Error.pm line 38. # Looks like your test died before it could output anything. dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 1-8 Failed 8/8 tests, 0.00% okay Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/80-timeout.t 255 65280 8 16 200.00% 1-8 Failed 1/1 test scripts, 0.00% okay. 8/8 subtests failed, 0.00% okay. Exception::Class says: "Importing "Exception::Class" allows you to automagically create "Exception::Class::Base" subclasses." But you don't "use" it in this test? Thanks, Gavin.
Hi Gavin, this is interesting. RT::Client::REST::Exception uses Exception::Class package, so those are loaded... Could you maybe provide some more information about your setup -- perl version, etc. Thanks, - Dmitri.
Subject: Re: [rt.cpan.org #21798] 80-timeout.t fails
Date: Mon, 2 Oct 2006 22:39:20 +0100 (BST)
To: bug-RT-Client-REST [...] rt.cpan.org
From: "Gavin Henry" <ghenry [...] perl.me.uk>
<quote who="via RT"> Show quoted text
> > <URL: http://rt.cpan.org/Ticket/Display.html?id=21798 > > > Hi Gavin, > > this is interesting. RT::Client::REST::Exception uses Exception::Class > package, so those are loaded... Could you maybe provide some more > information about your setup -- perl version, etc. > > Thanks, > > - Dmitri. > >
Sure. Fedora Core 5. [root@blackhat RT-Client-REST-0.26]# uname -a Linux blackhat 2.6.17-1.2174_FC5 #1 Tue Aug 8 15:30:55 EDT 2006 i686 athlon i386 GNU/Linux [root@blackhat RT-Client-REST-0.26]# perl -v This is perl, v5.8.8 built for i386-linux-thread-multi [root@blackhat RT-Client-REST-0.26]# perl Makefile.PL Writing Makefile for RT::Client::REST [root@blackhat RT-Client-REST-0.26]# make Manifying blib/man3/RT::Client::REST::Transaction.3pm Manifying blib/man3/RT::Client::REST::Ticket.3pm Manifying blib/man3/RT::Client::REST::Object.3pm Manifying blib/man3/RT::Client::REST::Queue.3pm Manifying blib/man3/RT::Client::REST::User.3pm Manifying blib/man3/RT::Client::REST::Exception.3pm Manifying blib/man3/RT::Client::REST::SearchResult.3pm Manifying blib/man3/RT::Client::REST.3pm Manifying blib/man3/RT::Client::REST::Attachment.3pm [root@blackhat RT-Client-REST-0.26]# make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/01-use.............ok t/10-core............ok t/20-object..........ok t/21-user............ok t/22-ticket..........ok t/23-attachment......ok t/24-transaction.....ok t/25-queue...........ok t/35-db..............ok 1/0Use of uninitialized value in string ne at /root/.cpan/build/RT-Client-REST-0.26/blib/lib/RT/Client/REST/Object.pm line 236. t/35-db..............ok t/40-search..........ok t/80-timeout......... at /usr/lib/perl5/vendor_perl/5.8.8/Error.pm line 38. # Looks like your test died before it could output anything. t/80-timeout.........dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 1-8 Failed 8/8 tests, 0.00% okay t/90-pod.............ok t/91-pod-coverage....ok Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/80-timeout.t 255 65280 8 16 200.00% 1-8 Failed 1/13 test scripts, 92.31% okay. 8/299 subtests failed, 97.32% okay. make: *** [test_dynamic] Error 255 [root@blackhat RT-Client-REST-0.26]# prove -v t/80-timeout.t t/80-timeout....1..8 at /usr/lib/perl5/vendor_perl/5.8.8/Error.pm line 38. # Looks like your test died before it could output anything. dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 1-8 Failed 8/8 tests, 0.00% okay Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/80-timeout.t 255 65280 8 16 200.00% 1-8 Failed 1/1 test scripts, 0.00% okay. 8/8 subtests failed, 0.00% okay. Error is version 0.17004 Snippet from Error.pm 35 sub throw_Error_Simple 36 { 37 my $args = shift; 38 return Error::Simple->new($args->{'text'}); 39 } 40 41 $Error::ObjectifyCallback = \&throw_Error_Simple Thanks, Gavin.
I could reproduce it after installing Error.pm 0.17004 (I originally developed with 0.15, also on Fedora 5). Will work on figuring this out. - Dmitri.
After a bunch of testing with various versions of Error.pm, I figured out that my test starts breaking starting with 0.17003. All versions before that work just dandy. - Dmitri.
Subject: Re: [rt.cpan.org #21798] 80-timeout.t fails
Date: Tue, 3 Oct 2006 19:08:38 +0100 (BST)
To: bug-RT-Client-REST [...] rt.cpan.org
From: "Gavin Henry" <ghenry [...] perl.me.uk>
<quote who="via RT"> Show quoted text
> > <URL: http://rt.cpan.org/Ticket/Display.html?id=21798 > > > I could reproduce it after installing Error.pm 0.17004 (I originally > developed with 0.15, also on Fedora 5). Will work on figuring this out.
Understood. Anything I can help with, please give us a shout. Gavin. Show quoted text
> > - Dmitri. > >
Subject: Re: [rt.cpan.org #21798] 80-timeout.t fails
Date: Tue, 3 Oct 2006 20:16:26 +0100 (BST)
To: bug-RT-Client-REST [...] rt.cpan.org
From: "Gavin Henry" <ghenry [...] perl.me.uk>
quote who="via RT"> Show quoted text
> > <URL: http://rt.cpan.org/Ticket/Display.html?id=21798 > > > After a bunch of testing with various versions of Error.pm, I figured > out that my test starts breaking starting with 0.17003. All versions > before that work just dandy.
So, what changed.... Show quoted text
> - Dmitri. > >
On Tue Oct 03 15:16:47 2006, ghenry@perl.me.uk wrote: Show quoted text
> So, what changed....
Look at ticket 21884. I filed it for Error.pm distribution. - Dmitri.
Gavin, upgrade Error.pm to the latest version (0.17005). I will close this ticket once ticket 21884 is resolved. - Dmitri.
Subject: Re: [rt.cpan.org #21798] 80-timeout.t fails
Date: Wed, 4 Oct 2006 15:59:59 +0100 (BST)
To: bug-RT-Client-REST [...] rt.cpan.org
From: "Gavin Henry" <ghenry [...] perl.me.uk>
<quote who="Dmitri Tikhonov via RT"> Show quoted text
> > <URL: http://rt.cpan.org/Ticket/Display.html?id=21798 > > > Gavin, > > upgrade Error.pm to the latest version (0.17005). I will close this > ticket once ticket 21884 is resolved.
Upgraded both Error, then RT::Client::REST. Working a treat, with no failed tests! Great work team! ;-) Thanks, Gavin. Show quoted text
> - Dmitri. > > >
Now that bug 21884 is resolved, I am closing this bug. The problem was in Error.pm, not my code. If you come across this issue, please upgrade your Error.pm. - Dmitri.