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
Message body not shown because it is not plain text.