domm / lib-projectroot

easier loading of local libs
2 stars 4 forks source link

Failed test 'added 6 element to @INC (1 lib, 5 local::lib)' #5

Open eserte opened 2 years ago

eserte commented 2 years ago

On some of my smoker systems the test suite fails like this:

#   Failed test 'added 6 element to @INC (1 lib, 5 local::lib)'
#   at t/02_local_lib/bin/01_basic.t line 14.
#          got: '27'
#     expected: '25'
# Looks like you failed 1 test of 7.
t/02_local_lib/bin/01_basic.t .......................... 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/7 subtests 

It seems that this happens only for some system perls (e.g. the perl found in debian 11), but not for self-compiled perls.

eserte commented 2 years ago

A variation of the failure (seen on a CentOS 7 system):

#   Failed test 'added 6 element to @INC (1 lib, 5 local::lib)'
#   at t/02_local_lib/bin/01_basic.t line 14.
#          got: '24'
#     expected: '20'

#   Failed test 'a local::lib dir added to @INC'
#   at t/02_local_lib/bin/01_basic.t line 17.
#                   'blib/lib/x86_64-linux-thread-multi'
#     doesn't match '(?^:02_local_lib/local)'

#   Failed test 'a local::lib dir added to @INC'
#   at t/02_local_lib/bin/01_basic.t line 17.
#                   'blib/lib'
#     doesn't match '(?^:02_local_lib/local)'
# Looks like you failed 3 tests of 7.
t/02_local_lib/bin/01_basic.t .......................... 
Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/7 subtests