This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
t/loc_tools.pl: Display diagnostic on non-found file
authorKarl Williamson <khw@cpan.org>
Tue, 9 Jan 2018 20:19:12 +0000 (13:19 -0700)
committerKarl Williamson <khw@cpan.org>
Tue, 9 Jan 2018 20:26:11 +0000 (13:26 -0700)
commit589c4ae095ed45ac01a8a0159079a54a45294ecc
treecc2d6a390c4c7502caaf8d12f151a792301ec4af
parentf47d3375897f813737cab9a7ccbc3b404dd73b84
t/loc_tools.pl: Display diagnostic on non-found file

The diagnostic output added in 759b442cd504fd04e125d71b981f7092ec3fbea1
shows that in some platforms that the path to certain files is not
correct at the time  (spotted by Tomasz Konojacki).

This commit tests for the existence of the files, and if not found warns
and doesn't process further.  This warning gives a better clue in the
future as to the cause of the problem.  The other warning remains, in
case there are other causes, now or in the future.

We are still working on the best way to specify these files, as the
hard-coded relative path that specifies them gets disrupted if the
current directory gets changed.
t/loc_tools.pl