Date: | Thu, 23 Jan 2020 21:48:04 +0000 |
Subject: | test fails due to test_exec shebang |
To: | "bug-ExtUtils-Helpers [...] rt.cpan.org" <bug-ExtUtils-Helpers [...] rt.cpan.org> |
From: | "Denley, Chris" <Chris.Denley [...] experian.com> |
do382cd@usaltapdps01:~/ExtUtils-Helpers-0.026> make
do382cd@usaltapdps01:~/ExtUtils-Helpers-0.026> make test
PERL_DL_NONLAZY=1 /opt/perl-5.18.2/bin/perl "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/make_executable.t ... Can't exec "test_exec": No such file or directory at t/make_executable.t line 23.
t/make_executable.t ... 1/7
# Failed test 'test_exec 42 return value ok'
# at t/make_executable.t line 25.
# got: '2'
# expected: '42'
Can't exec "test_exec": No such file or directory at t/make_executable.t line 23.
# Failed test 'test_exec 51 return value ok'
# at t/make_executable.t line 25.
# got: '2'
# expected: '51'
Can't exec "test_exec": No such file or directory at t/make_executable.t line 23.
# Failed test 'test_exec 0 return value ok'
# at t/make_executable.t line 25.
# got: '2'
# expected: '0'
# Looks like you failed 3 tests of 7.
t/make_executable.t ... Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/7 subtests
(less 1 skipped subtest: 3 okay)
t/man_pagename.t ...... ok
t/split_like_shell.t .. ok
t/tilde.t ............. ok
Test Summary Report
-------------------
t/make_executable.t (Wstat: 768 Tests: 7 Failed: 3)
Failed tests: 2, 4, 6
Non-zero exit status: 3
Files=4, Tests=30, 1 wallclock secs ( 0.04 usr 0.00 sys + 0.09 cusr 0.03 csys = 0.16 CPU)
Result: FAIL
Failed 1/4 test programs. 3/30 subtests failed.
Makefile:882: recipe for target 'test_dynamic' failed
make: *** [test_dynamic] Error 255
do382cd@usaltapdps01:~/ExtUtils-Helpers-0.026> cat ~/shebang.pl
#! perl -w
print "this shebang will not work\n";
exit 0;
do382cd@usaltapdps01:~/ExtUtils-Helpers-0.026> ~/shebang.pl
-bash: /home/do382cd/shebang.pl: perl: bad interpreter: No such file or directory
do382cd@usaltapdps01:~/ExtUtils-Helpers-0.026> which perl
/opt/perl/bin/perl
do382cd@usaltapdps01:~/ExtUtils-Helpers-0.026> uname -a
Linux usaltapdps01 4.12.14-95.45-default #1 SMP Wed Dec 11 13:09:13 UTC 2019 (12c8180) x86_64 x86_64 x86_64 GNU/Linux
do382cd@usaltapdps01:~/ExtUtils-Helpers-0.026> perl -v
This is perl 5, version 18, subversion 2 (v5.18.2) built for x86_64-linux-thread-multi
Copyright 1987-2013, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
do382cd@usaltapdps01:~/ExtUtils-Helpers-0.026>