Subject: | test failure |
Test with "-w" switch in make_executable fails because of -w sswitch:
Show quoted text
> make test
PERL_DL_NONLAZY=1 "/home/perl/perl-5.26.0/usr/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 ... /usr/bin/env: ‘perl -w’: No such file or directory
t/make_executable.t ... 1/7
# Failed test 'test_exec 42 return value ok'
# at t/make_executable.t line 25.
# got: '127'
# expected: '42'
/usr/bin/env: ‘perl -w’: No such file or directory
# Failed test 'test_exec 51 return value ok'
# at t/make_executable.t line 25.
# got: '127'
# expected: '51'
/usr/bin/env: ‘perl -w’: No such file or directory
# Failed test 'test_exec 0 return value ok'
# at t/make_executable.t line 25.
# got: '127'
# 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, 0 wallclock secs ( 0.03 usr 0.01 sys + 0.31 cusr 0.03 csys = 0.38 CPU)
Result: FAIL
Failed 1/4 test programs. 3/30 subtests failed.
Makefile:882: recipe for target 'test_dynamic' failed
---removing -w from inside test, get:
Show quoted text> gvim t/make_executable.t
Ishtar:../ExtUtils-Helpers-0.026-6> make test
PERL_DL_NONLAZY=1 "/home/perl/perl-5.26.0/usr/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 ... ok
t/man_pagename.t ...... ok
t/split_like_shell.t .. ok
t/tilde.t ............. ok
All tests successful.
Files=4, Tests=30, 0 wallclock secs ( 0.03 usr 0.01 sys + 0.31 cusr 0.04 csys = 0.39 CPU)
Result: PASS