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