Perl:Device::USB 未通过测试
我怎样才能找出失败的原因?
进行测试:
PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*. t t/00-load.t ...................... 1/1 # 测试设备::USB 0.35、Perl 5.014000、/usr/local/bin /perl t/00-load.t ...................... 好的
t/01-create-usb.t ...................... 2/2 子测试失败
...
...测试总结报告
t/01-create-usb.t(Wstat:11 测试:0 失败:0)
非零等待状态:11
解析错误:糟糕的计划。您计划了 2 次测试,但运行了 0 次。
...
...结果:失败 16/22 测试计划失败。 0/38 子测试失败。 制作:* [test_dynamic] Fehler 255
当我运行此脚本时,我收到一条分段错误
消息 (Speicherzugriffsfehler):
#!/usr/local/bin/perl
use warnings;
use strict;
use Device::USB;
my $usb = Device::USB->new();
How could I find out the reason for the failing?
make test:
PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-load.t ....................... 1/1 # Testing Device::USB 0.35, Perl 5.014000, /usr/local/bin/perl
t/00-load.t ....................... ok
t/01-create-usb.t ................. Failed 2/2 subtests
...
...Test Summary Report
t/01-create-usb.t (Wstat: 11 Tests: 0 Failed: 0)
Non-zero wait status: 11
Parse errors: Bad plan. You planned 2 tests but ran 0.
...
...Result: FAIL
Failed 16/22 test programs. 0/38 subtests failed.
make: * [test_dynamic] Fehler 255
When I ran this script I get a Segmentation fault
message (Speicherzugriffsfehler):
#!/usr/local/bin/perl
use warnings;
use strict;
use Device::USB;
my $usb = Device::USB->new();
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
perl -d:Trace ...
查找Perl 代码中的故障点。strace
这样的工具可以在系统调用级别查找故障点。perl -d:Trace ...
to find the failure point within the Perl code.strace
to find the failure point at the system call level.你有哪个版本的 libusb?模块上似乎有一张打开的票,描述了与您类似的问题: https://rt.cpan.org/Public/Bug/Display.html?id=65908
在模块上打开的 RT 票证是从该模块的主 search.cpan.org 页面链接的,此处 http://search.cpan.org/dist/Device-USB/ 通常值得如果模块出现问题,请查看队列。
Which version of libusb do you have? There seems to be a ticket open on the module that decribes a problem similar to yours: https://rt.cpan.org/Public/Bug/Display.html?id=65908
RT tickets open on a module are linked from the main search.cpan.org page for the module, here http://search.cpan.org/dist/Device-USB/ It is often worth having a look at the queue if you're having problems with the module.