On Mar 5, 2016, at 12:56 PM, Neil Bowers <neil.bow...@cogendo.com> wrote:
> There are two CPAN Testers fails: > > > http://www.cpantesters.org/cpan/report/4ddcddb1-6c58-1014-bec3-a1032b7077ee > > http://www.cpantesters.org/cpan/report/39970866-dd9c-11e5-a3ee-89603848fe5a There is also this one: http://www.cpantesters.org/cpan/report/fa4758fa-db9d-11e5-88e3-a488a082370d # Failed test ' find('perldoc') should match survey's name2where{perldoc}' # at t/search50.t line 76. # got: '/home/njh/perl5/perlbrew/perls/perl-5.14.2/lib/5.14.2/perldoc.pod' # expected: '/home/njh/perl5/perlbrew/perls/perl-5.14.2/lib/5.14.2/Pod/perldoc.pod' Note that the files are in different directories! I have fought the issue of divergence between survey() and find() for a couple years now, and while the number of failures has come down over that time (mainly by making them search the same directories in the same order, prefer the same file extension precedence, and doing case-insensitive comparisons on case-insensitive file systems), it’s been a rather drawn-out game of whack-a-mole. > I think that the best fix is to make the survey() pattern match files with no > extensions, and also files with the .plx extension. Yes, these should be made consistent, which ought to address the failures you saw, but not the one where it finds the files in different directories. I think that’s an issue specific to perldoc, actually. At one time I considered putting a special case pass for that case in the test file, though I never couldn’t bring myself to do it. (Note that there is already a special-case handling of strict.) > This means that survey will scan a number of extra files, but it also scans > them looking for pod, so it shouldn’t return any false positive. This would > mean that survey would now find scripts that have pod in them, which it > currently misses. Makes sense. D
smime.p7s
Description: S/MIME cryptographic signature