Skip Menu |

This queue is for tickets about the DBIx-Wrapper CPAN distribution.

Report information
The Basics
Id: 76411
Status: resolved
Priority: 0/
Queue: DBIx-Wrapper

People
Owner: dowens [...] cpan.org
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.28
Fixed in: (no value)



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
Fixed in version 0.29, just uploaded to CPAN. Thanks for reporting this (and sorry for taking so long on the fix). ./don On Sun Apr 08 13:37:16 2012, SREZIC wrote: Show quoted text
> 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