Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the ExtUtils-ParseXS CPAN distribution.

Report information
The Basics
Id: 70047
Status: resolved
Priority: 0/
Queue: ExtUtils-ParseXS

People
Owner: Nobody in particular
Requestors: mike [...] sheldrake.net
Cc:
AdminCc:

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



Subject: Test All @INC Derived typemap Locations
Date: Fri, 05 Aug 2011 06:40:43 -0700
To: bug-ExtUtils-ParseXS [...] rt.cpan.org
From: Mike Sheldrake <mike [...] sheldrake.net>
In extutils-parsexs/t/101-standard_typemap_locations.t line 20 for the test "At least one typemap file exists underneath \@INC directories" you only check one of the directories derived from @INC. On a fresh install of Strawberry Perl, I had a typemap file in /strawberry/perl/lib/ExtUtils but not in /strawberry/perl/site/lib/ExtUtils Only the last directory got checked, so the test failed. I changed line 20 from ok( -f $stl[-10], to ok( scalar(grep {-f $stl[$_]} ( 0 .. $#stl - 9 )), to check all the @INC derived paths at the start of the @stl array. After that, successful tests and install. - Mike
Hi Mike, I applied a patch very similar to yours to the perl core and the Extutils::ParseXS github repository. I'll try to cut a new ExtUtils::ParseXS release as soon as I found the time to address CPAN RT #70150. Thanks for your diagnosis and the fix! Best regards, Steffen