Subject: | Locking problem in testsuite on *BSD system |
While running the test suite on a FreeBSD system there were failures
like this:
DBD::SQLite::db prepare failed: database is locked at
/var/tmp/CPAN-build/DBIx-Wrapper-0.28-1dy9yq/blib/lib/DBIx/Wrapper.pm
line 1842.
************************************************************
2010-10-22 23:33:25:t/01sqlite.t:120:
database is locked at t/01sqlite.t line 120
This is a typical indication that you're using a File::Temp-generated
temporary file for SQLite. On *BSD systems (not only FreeBSD, but also
MacOSX) File::Temp automatically locks temporary files, so SQLite's own
locking fails. If this is really the case here, then you should instruct
File::Temp to not lock the temporary file (this is described in the
File::Temp documentation).
Regards,
Slaven