<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.