这个错误是什么意思 - 用 cpan 安装 perl 模块

发布于 2024-12-10 05:40:07 字数 1959 浏览 1 评论 0原文

我尝试使用 安装 HTML::TreeBuilderX::ASP_NET Windows 7 上的 cpan。 我有草莓 Perl 设置。

一切都很顺利,直到最后我得到了以下信息。这是我应该担心的事情吗?

Test Summary Report
-------------------
t/10-traits.t    (Wstat: 65280 Tests: 3 Failed: 2)
  Failed tests:  2-3
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 5 tests but ran 3.
t/boilerplate.t  (Wstat: 0 Tests: 2 Failed: 0)
  TODO passed:   1-2
Files=7, Tests=22,  3 wallclock secs ( 0.08 usr +  0.01 sys =  0.09 CPU)
Result: FAIL
Failed 1/7 test programs. 2/22 subtests failed.
dmake.EXE:  Error code 255, while making 'test_dynamic'
  ECARROLL/HTML-TreeBuilderX-ASP_NET-0.09.tar.gz
  C:\strawberry\c\bin\dmake.EXE test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
  reports ECARROLL/HTML-TreeBuilderX-ASP_NET-0.09.tar.gz
Running make install
  make test had returned bad status, won't install without force
Failed during this command:
 ECARROLL/HTML-TreeBuilderX-ASP_NET-0.09.tar.gz: make_test NO

然后在安装 WWW::Mechanize 时 我得到了

Test Summary Report
-------------------
t\local\back.t         (Wstat: 256 Tests: 47 Failed: 1)
  Failed test:  33
  Non-zero exit status: 1
t\local\click_button.t (Wstat: 0 Tests: 19 Failed: 0)
  TODO passed:   15-17, 19
Files=52, Tests=550, 247 wallclock secs ( 0.42 usr +  0.28 sys =  0.70 CPU)
Result: FAIL
Failed 1/52 test programs. 1/550 subtests failed.
dmake.EXE:  Error code 255, while making 'test_dynamic'
  JESSE/WWW-Mechanize-1.70.tar.gz
  C:\strawberry\c\bin\dmake.EXE test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
  reports JESSE/WWW-Mechanize-1.70.tar.gz
Running make install
  make test had returned bad status, won't install without force
Failed during this command:
 JESSE/WWW-Mechanize-1.70.tar.gz              : make_test NO

I tried to install HTML::TreeBuilderX::ASP_NET with cpan on Windows 7.
I have strawberry perl setup.

Everything went smoothly until the end when I got the following. Is this something I should worry about?

Test Summary Report
-------------------
t/10-traits.t    (Wstat: 65280 Tests: 3 Failed: 2)
  Failed tests:  2-3
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 5 tests but ran 3.
t/boilerplate.t  (Wstat: 0 Tests: 2 Failed: 0)
  TODO passed:   1-2
Files=7, Tests=22,  3 wallclock secs ( 0.08 usr +  0.01 sys =  0.09 CPU)
Result: FAIL
Failed 1/7 test programs. 2/22 subtests failed.
dmake.EXE:  Error code 255, while making 'test_dynamic'
  ECARROLL/HTML-TreeBuilderX-ASP_NET-0.09.tar.gz
  C:\strawberry\c\bin\dmake.EXE test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
  reports ECARROLL/HTML-TreeBuilderX-ASP_NET-0.09.tar.gz
Running make install
  make test had returned bad status, won't install without force
Failed during this command:
 ECARROLL/HTML-TreeBuilderX-ASP_NET-0.09.tar.gz: make_test NO

then when installing WWW::Mechanize
I got

Test Summary Report
-------------------
t\local\back.t         (Wstat: 256 Tests: 47 Failed: 1)
  Failed test:  33
  Non-zero exit status: 1
t\local\click_button.t (Wstat: 0 Tests: 19 Failed: 0)
  TODO passed:   15-17, 19
Files=52, Tests=550, 247 wallclock secs ( 0.42 usr +  0.28 sys =  0.70 CPU)
Result: FAIL
Failed 1/52 test programs. 1/550 subtests failed.
dmake.EXE:  Error code 255, while making 'test_dynamic'
  JESSE/WWW-Mechanize-1.70.tar.gz
  C:\strawberry\c\bin\dmake.EXE test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
  reports JESSE/WWW-Mechanize-1.70.tar.gz
Running make install
  make test had returned bad status, won't install without force
Failed during this command:
 JESSE/WWW-Mechanize-1.70.tar.gz              : make_test NO

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

旧人九事 2024-12-17 05:40:07

它告诉您某些测试失败,因此安装将无法继续。失败的测试位于 t/10-traits.t 中,失败的测试是 2 和 3。您是否应该担心这一点取决于测试是什么以及它们失败的原因。

这些是失败的测试:

eval { HTML::TreeBuilderX::ASP_NET->new_with_traits( traits => ['htmlElement'] ) };
ok ( !$@, 'htmlElement trait construction is good!!' );

eval {
    HTML::TreeBuilderX::ASP_NET->new_with_traits( traits => ['htmlElement'] );
    HTML::Element->new('a', href => "__doPostBack('foo','bar')" )->httpRequest;
};
like ( $@, qr/<form>/, 'Success with use! (failed without the parent form)' );

It tells you that some tests failed and therefore the install will not proceed. The failed tests are in t/10-traits.t and the failed tests are 2 and 3. Whether you should worry about this depends on what the tests are and why they are failing.

These are the failing tests:

eval { HTML::TreeBuilderX::ASP_NET->new_with_traits( traits => ['htmlElement'] ) };
ok ( !$@, 'htmlElement trait construction is good!!' );

eval {
    HTML::TreeBuilderX::ASP_NET->new_with_traits( traits => ['htmlElement'] );
    HTML::Element->new('a', href => "__doPostBack('foo','bar')" )->httpRequest;
};
like ( $@, qr/<form>/, 'Success with use! (failed without the parent form)' );
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文