Open eserte opened 2 years ago
Could be related to the installed Test::MockFile (0.21 or older?).
Test::MockFile
has a missing dependency which is not fixed yet on Text::Glob
I wonder if this is related
view https://github.com/cpanel/Test-MockFile/issues/104
With newer Test-MockFile (version 0.029) the test failure looks somewhat different:
Can't load Policies from namespace "Perl::Critic::Policy": Use of stat to access unmocked file or directory '/home/cpansand/.cpan/build/2022022121/Perl-Critic-Policy-PreferredModules-0.004-0/blib/lib/Perl/Critic/Policy' in strict mode at /opt/perl-5.34.0/lib/site_perl/5.34.0/Module/Pluggable/Object.pm line 198 at /opt/perl-5.34.0/lib/site_perl/5.34.0/Module/Pluggable/Object.pm line 198.
Module::Pluggable::Object::search_paths(Module::Pluggable::Object=HASH(0x2cf9c50), "/home/cpansand/.cpan/build/2022022121/Perl-Critic-Policy-Pref"...) called at /opt/perl-5.34.0/lib/site_perl/5.34.0/Module/Pluggable/Object.pm line 178
...
t/check-policy.t fails on some of my systems like this: