App-perlbrew
App-perlbrew copied to clipboard
t/20.patchperl.t fails with version 1.02
App-perlbrew started to fail in our openSUSE builds with version 1.02 and perl 5.42.0: https://build.opensuse.org/package/live_build_log/devel:languages:perl:autoupdate/perl-App-perlbrew/standard/x86_64
[ 13s] # Failed test at t/20.patchperl.t line 83.
[ 13s] # +-----------+------------+-----------+-----+
[ 13s] # | GOT | OP | CHECK | LNs |
[ 13s] # +-----------+------------+-----------+-----+
[ 13s] # | patchperl | !DEFINED() | UNDEFINED | 83 |
[ 13s] # +-----------+------------+-----------+-----+
[ 13s] (If this table is too small, you can use the TABLE_TERM_SIZE=### env var to set a larger size, detected size is '66')
[ 13s]
[ 13s] # Failed test 'should return undef'
[ 13s] # at t/20.patchperl.t line 84.
[ 13s] # Failed test 'When patchperl exist in PERLBREW_ROOT but it is not an executable file'
[ 13s] # at t/20.patchperl.t line 85.
[ 13s] # Fake-install a patchperl to /tmp/uBUJDb5Ov2/patchperl
[ 13s] # Fake-install a patchperl to /tmp/dMbw4er_iD/bin/patchperl
[ 13s] # Fake-install a patchperl to /tmp/uBUJDb5Ov2/patchperl
[ 13s] # Fake-install a patchperl to /tmp/0j21gy5fib/bin/patchperl
[ 13s] # Failed test at t/20.patchperl.t line 27.
[ 13s] # +-----------+------------+-----------+-----+
[ 13s] # | GOT | OP | CHECK | LNs |
[ 13s] # +-----------+------------+-----------+-----+
[ 13s] # | patchperl | !DEFINED() | UNDEFINED | 27 |
[ 13s] # +-----------+------------+-----------+-----+
[ 13s] (If this table is too small, you can use the TABLE_TERM_SIZE=### env var to set a larger size, detected size is '70')
[ 13s]
[ 13s] # Failed test 'should return undef, when patchperl does not exist'
[ 13s] # at t/20.patchperl.t line 28.
[ 13s]
[ 13s] # Failed test 'App::Perlbrew::Patchperl maybe_patchperl'
[ 13s] # at t/20.patchperl.t line 86.
[ 13s] # Seeded srand with seed '20250719' from local date.
[ 13s] t/20.patchperl.t ..........................
[ 13s] Dubious, test returned 1 (wstat 256, 0x100)
[ 13s] Failed 1/1 subtests
I see the same failures on cpantesters, e.g. https://www.cpantesters.org/cpan/report/7a6ed568-6414-11f0-9683-0b366e8775ea
Thanks @perlpunk , I shall add perl 5.42 to the CI of this repo as a starter...
According to cpantesters it happens in older versions as well, though