Subject: | won't install: test.t requires unlisted requirement Test::TCP + dies anyway |
1. The test uses Test::TCP without testing whether it's installed or
listing it in PREREQ_PM
eg: (from Ubic)
eval "use Test::TCP";
plan skip_all => "Test::TCP required for testing ping" if $@;
2. It appears test.t is making the false assumption that plackup is in
my path. which('plackup') returns an undefined value.
Fixing both of these problems allows the install to complete.
Thanks
lt5001:~/.cpan/build/Ubic-Service-Plack-1.14-QTLycu # prove -vc t/test.t
t/test.t ..
1..14
Use of uninitialized value $plackup in concatenation (.) or string at
t/test.t line 19.
not running# Looks like your test exited with 2 before it could output
anything.
Dubious, test returned 2 (wstat 512, 0x200)
Failed 14/14 subtests
Test Summary Report
-------------------
t/test.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: Bad plan. You planned 14 tests but ran 0.
Files=1, Tests=0, 0 wallclock secs ( 0.04 usr 0.00 sys + 0.16 cusr
0.01 csys = 0.21 CPU)
Result: FAIL