From b6ee2d10d620955691b7448882323d2986ebb94e Mon Sep 17 00:00:00 2001 From: Adam Spiers Date: Mon, 15 Jul 2019 16:10:21 -0400 Subject: [PATCH] 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! --- THANKS | 1 + t/cli.t | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/THANKS b/THANKS index 64147fb..8fbdd43 100644 --- a/THANKS +++ b/THANKS @@ -36,6 +36,7 @@ Jean Louis Daniel Shahaf Matan Nassau Brice Waegeneire +Slaven Rezic Email addresses of new contributors are no longer being added by default for privacy reasons; however please contact the maintainer if you are diff --git a/t/cli.t b/t/cli.t index cf324ed..3bd3194 100755 --- a/t/cli.t +++ b/t/cli.t @@ -57,7 +57,7 @@ use testutil; # # or from the top of the source tree during development. This can be done # via the following, which also follows the KISS principle: -my $STOW = 'bin/stow'; +my $STOW = "$^X bin/stow"; `$STOW --help`; is($?, 0, "--help should return 0 exit code");