Subject: | t/01_rss.t fails on Mandriva Cooker (and probably other platforms) |
When running make test on Mandriva Cooker with all dependencies present:
{{{{{{{{{{{{{{{{
shlomi:~/Download/unpack/perl/cpan/Data-Feed-0.00003$ perl -Ilib
t/01_rss.t
1..25
ok 1 - use Data::Feed;
ok 2 - The object isa Data::Feed::RSS
ok 3
ok 4
ok 5
ok 6
^C
shlomi:~/Download/unpack/perl/cpan/Data-Feed-0.00003$ make test
PERL_DL_NONLAZY=1 /usr/bin/perl5.10.0 "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/00_compile.t
t/01_rss.t t/02_atom.t t/99-pod-coverage.t t/99-pod.t
t/00_compile...........ok
t/01_rss...............7/25
# Failed test at t/01_rss.t line 59.
# Failed test at t/01_rss.t line 59.
# Failed test at t/01_rss.t line 59.
# Failed test at t/01_rss.t line 59.
# Failed test at t/01_rss.t line 59.
# Failed test at t/01_rss.t line 59.
# Failed test at t/01_rss.t line 59.
# Failed test at t/01_rss.t line 59.
# Failed test at t/01_rss.t line 59.
# Failed test at t/01_rss.t line 59.
# Failed test at t/01_rss.t line 59.
# Failed test at t/01_rss.t line 59.
# Failed test at t/01_rss.t line 59.
# Failed test at t/01_rss.t line 59.
# Failed test at t/01_rss.t line 59.
# Looks like you failed 15 tests of 25.
t/01_rss............... Dubious, test returned 15 (wstat 3840, 0xf00)
Failed 15/25 subtests
t/02_atom..............ok
t/99-pod-coverage......skipped: Enable TEST_POD environment variable to
test POD
t/99-pod...............skipped: Enable TEST_POD environment variable to
test POD
Test Summary Report
-------------------
t/01_rss.t (Wstat: 3840 Tests: 25 Failed: 15)
Failed tests: 11-25
Non-zero exit status: 15
Files=5, Tests=67, 9 wallclock secs ( 0.07 usr 0.01 sys + 4.41 cusr
0.31 csys = 4.80 CPU)
Result: FAIL
Failed 1/5 test programs. 15/67 subtests failed.
make: *** [test_dynamic] Error 255
}}}}}}}}}}}}}}}}
An inspection of the code yields that the entries in the feed
http://4u.straightline.jp/rss do not contain enclosures.
Please fix this problem, because it prevents installing from CPAN, or
preparing an RPM. It would be a good idea to use a good RSS feed that
always remains the same on your host and is guaranteed to be valid.
While you're at it, please add test names (see perldoc Test::More) to
the tests.
Regards,
Shlomi Fish