cli.t: test with the right Perl executable

t/cli.t calls scripts which run with the first perl found in the
user's PATH (usually the system perl), not with the perl used for the
build, as reported here:

    https://rt.cpan.org/Ticket/Display.html?id=129944

Thanks to Slaven Rezic for spotting this and reporting it!
This commit is contained in:
Adam Spiers 2019-07-15 16:10:21 -04:00
parent 9f59494d4e
commit b6ee2d10d6
2 changed files with 2 additions and 1 deletions

1
THANKS
View file

@ -36,6 +36,7 @@ Jean Louis
Daniel Shahaf Daniel Shahaf
Matan Nassau Matan Nassau
Brice Waegeneire Brice Waegeneire
Slaven Rezic
Email addresses of new contributors are no longer being added by default Email addresses of new contributors are no longer being added by default
for privacy reasons; however please contact the maintainer if you are for privacy reasons; however please contact the maintainer if you are

View file

@ -57,7 +57,7 @@ use testutil;
# #
# or from the top of the source tree during development. This can be done # or from the top of the source tree during development. This can be done
# via the following, which also follows the KISS principle: # via the following, which also follows the KISS principle:
my $STOW = 'bin/stow'; my $STOW = "$^X bin/stow";
`$STOW --help`; `$STOW --help`;
is($?, 0, "--help should return 0 exit code"); is($?, 0, "--help should return 0 exit code");