Subject: | test failure with perl 5.20.0 |
I suspect that the problem comes from the fact that during the unit test we use an array ref for $ENV{'lib::restrict-!-d_ok_in'}
which looks to not work with perl 520.0
Show quoted text
> perl514 -E 'BEGIN { $ENV{"foo"} = [ 1..3 ] }; say ref $ENV{"foo"}'
ARRAY
Show quoted text> perl520 -E 'BEGIN { $ENV{"foo"} = [ 1..3 ] }; say ref $ENV{"foo"}'
# no return
note that we have an array in %ENV, looks like to be unblessed ?
Show quoted text> perl -E '$ENV{"foo"} = [ 1..3 ]; say $ENV{"foo"}; say ref $ENV{"foo"}'
ARRAY(0xb31148)
* Error while running the unit test:
+ /usr/bin/make test
PERL_DL_NONLAZY=1 /usr/local/cpanel/3rdparty/perl/520/bin/perl "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
# Failed test '!-d parent exists uid'
# at t/lib-restrict.t line 59.
# Failed test '!-d parent exists code ref false'
# at t/lib-restrict.t line 65.
# Looks like you failed 2 tests of 35.
t/lib-restrict.t ..
Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/35 subtests
Test Summary Report
-------------------
t/lib-restrict.t (Wstat: 512 Tests: 35 Failed: 2)
Failed tests: 23, 27
Non-zero exit status: 2
Files=1, Tests=35, 0 wallclock secs ( 0.02 usr 0.01 sys + 0.02 cusr 0.00 csys = 0.05 CPU)
Result: FAIL