Skip Menu |

This queue is for tickets about the Class-DBI-AsForm CPAN distribution.

Report information
The Basics
Id: 9229
Status: resolved
Priority: 0/
Queue: Class-DBI-AsForm

People
Owner: Nobody in particular
Requestors: lars [...] thegler.dk
LTHEGLER [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.41
Fixed in: (no value)

Attachments
p5-Class-DBI-AsForm-2.41-diff



Subject: [PATCH] Improve detection of DBD::SQLite2
While DBD::SQLite2 is not installed, test.pl fails with the rather ugly: --cut-- $ prove -vb test.pl test....Can't locate DBD/SQLite2.pm in @INC (@INC contains: blib/arch blib/lib /usr/local/lib/perl5/site_perl/5.8.5/mach [...yadayada...] /usr/local/lib/perl5/5.8.5 .) at test.pl line 3. # Looks like your test died before it could output anything. dubious Test returned status 2 (wstat 512, 0x200) FAILED--1 test script could be run, alas--no output ever seen $ --cut-- The attached patch improves the module detection, so it fails more graciously: --cut-- $ prove -vb test.pl test....1..0 # Skip Couldn't load DBD::SQLite2 skipped all skipped: Couldn't load DBD::SQLite2 All tests successful, 1 test skipped. Files=1, Tests=0, 1 wallclock secs ( 0.61 cusr + 0.09 csys = 0.70 CPU) $ --cut-- /Lars
Download p5-Class-DBI-AsForm-2.41-diff
application/octet-stream 270b

Message body not shown because it is not plain text.

[LTHEGLER - Wed Dec 29 12:11:14 2004]: Show quoted text
> While DBD::SQLite2 is not installed, test.pl fails with the rather > ugly:
New version uploaded has this wrapped in an eval for better detection. Thanks, Tony