Skip Menu |

This queue is for tickets about the TryCatch CPAN distribution.

Report information
The Basics
Id: 55894
Status: resolved
Priority: 0/
Queue: TryCatch

People
Owner: ash_rtcpan [...] firemirror.com (weekly)
Requestors: ilmari [...] ilmari.org
Cc:
AdminCc:

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



Subject: Tests fail on perl 5.12.0-RC0
Date: Wed, 24 Mar 2010 13:20:45 +0000
To: bug-TryCatch [...] rt.cpan.org
From: ilmari [...] ilmari.org (Dagfinn Ilmari Mannsåker)
Hi, TryCatch fails several of its tests on Perl 5.12.0-RC0: cpanm (App::cpanminus) 0.9923 on perl 5.012000 built for x86_64-linux Work directory is /home/ilmari/.cpanm/work/1269436747.18865 Loading plugin /home/ilmari/.cpanm/plugins/minicpan Loading plugin /home/ilmari/.cpanm/plugins/desktop_notify Searching TryCatch on cpanmetadb ... Fetching http://search.cpan.org/CPAN/authors/id/A/AS/ASH/TryCatch-1.002000.tar.gz ... OK Unpacking TryCatch-1.002000.tar.gz Entering TryCatch-1.002000 Checking configure dependencies from META.yml ... Checking if you have B::Hooks::OP::Check 0.18 ... Yes (0.18) Checking if you have ExtUtils::MakeMaker 6.42 ... Yes (6.56) Checking if you have B::Hooks::OP::PPAddr 0.03 ... Yes (0.03) Checking if you have ExtUtils::Depends 0.302 ... Yes (0.302) Configuring TryCatch-1.002000 ... Running Makefile.PL*** Module::AutoInstall version 1.03 *** Checking for Perl dependencies... *** Since we're running under CPAN, I'll just let it take care of the dependency's installation later. [Core Features] - Test::More ...loaded. (0.94 >= 0.88) - Test::Exception ...loaded. (0.29) - B::Hooks::OP::Check ...loaded. (0.18 >= 0.18) - B::Hooks::OP::PPAddr ...loaded. (0.03 >= 0.03) - Parse::Method::Signatures ...loaded. (1.003013 >= 1.003012) - B::Hooks::EndOfScope ...loaded. (0.08 >= 0.08) - Devel::Declare ...loaded. (0.006000 >= 0.005007) - Moose ...loaded. (0.99) - MooseX::Types ...loaded. (0.21) - Scope::Upper ...loaded. (0.10 >= 0.06) - Variable::Magic ...loaded. (0.41 >= 0.28) - Sub::Exporter ...loaded. (0.982 >= 0.979) - XSLoader ...loaded. (0.10) *** Module::AutoInstall configuration finished. Checking if your kit is complete... Looks good Writing Makefile for TryCatch Writing MYMETA.yml OK Checking dependencies from MYMETA.yml ... Finding PREREQ from Makefile ... Checking if you have XSLoader 0 ... Yes (0.10) Checking if you have Parse::Method::Signatures 1.003012 ... Yes (1.003013) Checking if you have Sub::Exporter 0.979 ... Yes (0.982) Checking if you have Moose 0 ... Yes (0.99) Checking if you have Test::Exception 0 ... Yes (0.29) Checking if you have Scope::Upper 0.06 ... Yes (0.10) Checking if you have ExtUtils::MakeMaker 6.42 ... Yes (6.56) Checking if you have ExtUtils::Depends 0.302 ... Yes (0.302) Checking if you have B::Hooks::EndOfScope 0.08 ... Yes (0.08) Checking if you have Test::More 0.88 ... Yes (0.94) Checking if you have B::Hooks::OP::Check 0.18 ... Yes (0.18) Checking if you have MooseX::Types 0 ... Yes (0.21) Checking if you have B::Hooks::OP::PPAddr 0.03 ... Yes (0.03) Checking if you have Devel::Declare 0.005007 ... Yes (0.006000) Checking if you have Variable::Magic 0.28 ... Yes (0.41) Building and testing TryCatch-1.002000 for TryCatch ... cp bench_ok.pl blib/lib/bench_ok.pl cp bench.pl blib/lib/bench.pl cp lib/TryCatch.pm blib/lib/TryCatch.pm /home/ilmari/perl-5.12.0-RC0/bin/perl "-Iinc" /home/ilmari/perl-5.12.0-RC0/lib/5.12.0/ExtUtils/xsubpp -typemap /home/ilmari/perl-5.12.0-RC0/lib/5.12.0/ExtUtils/typemap TryCatch.xs > TryCatch.xsc && mv TryCatch.xsc TryCatch.c cc -c -I/home/ilmari/.cpanm/work/1269436747.18865/TryCatch-1.002000/inc/EUDeps/B/Hooks/OP/Check/Install -I/home/ilmari/.cpanm/work/1269436747.18865/TryCatch-1.002000/inc/EUDeps/B/Hooks/OP/PPAddr/Install -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"1.002000\" -DXS_VERSION=\"1.002000\" -fPIC "-I/home/ilmari/perl-5.12.0-RC0/lib/5.12.0/x86_64-linux/CORE" TryCatch.c TryCatch.xs: In function ‘unwind_return’: TryCatch.xs:68: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘IV’ TryCatch.xs: In function ‘check_leavetry’: TryCatch.xs:158: warning: format ‘%x’ expects type ‘unsigned int’, but argument 2 has type ‘struct OP *’ Running Mkbootstrap for TryCatch () chmod 644 TryCatch.bs rm -f blib/arch/auto/TryCatch/TryCatch.so cc -shared -O2 -L/usr/local/lib -fstack-protector TryCatch.o -o blib/arch/auto/TryCatch/TryCatch.so \ \ chmod 755 blib/arch/auto/TryCatch/TryCatch.so cp TryCatch.bs blib/arch/auto/TryCatch/TryCatch.bs chmod 644 blib/arch/auto/TryCatch/TryCatch.bs Manifying blib/man3/TryCatch.3 PERL_DL_NONLAZY=1 /home/ilmari/perl-5.12.0-RC0/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/catch_01.t t/context.t t/destroy.t t/handwritten.t t/invalid.t t/method.t t/mx_types_structured.t t/nested.t t/simple.t t/types.t t/catch_01.t ............. ok # Failed test 'Scalar try context preserved' # at t/context.t line 22. # got: undef # expected: '' # Failed test 'Array try context preserved' # at t/context.t line 25. # got: undef # expected: '1' # Looks like you failed 2 tests of 6. t/context.t .............. Dubious, test returned 2 (wstat 512, 0x200) Failed 2/6 subtests t/destroy.t .............. ok t/handwritten.t .......... ok # Failed test 'no block after catch' # at t/invalid.t line 22. # 'syntax error at (eval 311) line 3, near "try { " # ' # doesn't match '(?-xism:^block required after catch at \(eval \d+\) line (\d+)\b)' # Failed test 'Error from line 5' # at t/invalid.t line 33. # got: undef # expected: '5' # Looks like you failed 2 tests of 15. t/invalid.t .............. Dubious, test returned 2 (wstat 512, 0x200) Failed 2/15 subtests t/method.t ............... ok t/mx_types_structured.t .. ok t/nested.t ............... ok # Failed test 'use in try block' # at t/simple.t line 40. # got: undef # expected: '42' # Looks like you failed 1 test of 6. t/simple.t ............... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/6 subtests t/types.t ................ ok Test Summary Report ------------------- t/context.t (Wstat: 512 Tests: 6 Failed: 2) Failed tests: 1-2 Non-zero exit status: 2 t/invalid.t (Wstat: 512 Tests: 15 Failed: 2) Failed tests: 3-4 Non-zero exit status: 2 t/simple.t (Wstat: 256 Tests: 6 Failed: 1) Failed test: 4 Non-zero exit status: 1 Files=10, Tests=58, 3 wallclock secs ( 0.03 usr 0.01 sys + 2.70 cusr 0.21 csys = 2.95 CPU) Result: FAIL Failed 3/10 test programs. 5/58 subtests failed. make: *** [test_dynamic] Error 255 FAIL ! Installing TryCatch failed. See /home/ilmari/.cpanm/build.log for details. -- ilmari "A disappointingly low fraction of the human race is, at any given time, on fire." - Stig Sandbeck Mathisen
It also fails on perl 5.12.1
From: greg dot estep at gmail dot com
I also get the same test failures on a fresh perlbrew install of 5.12.1. I'm trying version 1.002000 Looking at the the CPAN testers reports I see that there is a 100% failure rate for 5.12.1
On Sun Jun 27 03:11:12 2010, http://gestep.pip.verisignlabs.com/ wrote: Show quoted text
> I also get the same test failures on a fresh perlbrew install of 5.12.1. > > I'm trying version 1.002000 > > Looking at the the CPAN testers reports I see that there is a 100% failure > rate for 5.12.1
This is a known bug and I've made some progress on fixing it in the repo: http://github.com/ashb/trycatch/ I've just not manged to find the time to fix the final cases - it largely works, just a few niggles to sort out.
Fixed in 1.003000