安装 Module::pluggable 时,测试失败。 安装使用的命令:
cpanm --mirror https://artifactory.factset.com/artifactory/cpan.org/ Module::Pluggable
日志:
t/29unreadable.t ............. 1/6
# Failed test at t/29unreadable.t line 31.
# Structures begin differing at:
# $got->[0] = 'Unreadable::Foo'
# $expected->[0] = Does not exist
# Failed test at t/29unreadable.t line 36.
# Structures begin differing at:
# $got->[0] = 'Unreadable::Foo'
# $expected->[0] = Does not exist
# Looks like you failed 2 tests of 6.
t/29unreadable.t ............. Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/6 subtests
Test Summary Report
-------------------
t/29unreadable.t (Wstat: 512 Tests: 6 Failed: 2)
Failed tests: 2, 4
Non-zero exit status: 2
有什么变化吗?我们可以使用武力,但不知道为什么会失败。我的 Perl 版本:5.16.0.
强制使用时跳过测试,安装成功。我还尝试安装日期时间模块,该模块在某种程度上依赖于
Module::Pluggable
测试正在检查是否找到了它无权读取的模块。我们假设测试没有问题。更糟糕的情况是它会尝试加载您无权读取的模块。这不是什么值得担心的事情。因此,继续强制安装它。