X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F07_locking.t;h=09e3c8d1012b452bf01be2286a69f65bdc2327bb;hb=fde3db1a5e4879bebec5ca8051caa2804d1a826e;hp=e2b94dd91156c513e850576da5ae7a8ba962d169;hpb=25369e065de96591e6a90394c1554fef52055cf3;p=dbsrgits%2FDBM-Deep.git diff --git a/t/07_locking.t b/t/07_locking.t index e2b94dd..09e3c8d 100644 --- a/t/07_locking.t +++ b/t/07_locking.t @@ -3,20 +3,15 @@ ## use strict; use Test::More tests => 4; +use t::common qw( new_fh ); use_ok( 'DBM::Deep' ); -## -# basic file open -## -unlink "t/test.db"; +my ($fh, $filename) = new_fh(); my $db = DBM::Deep->new( - file => "t/test.db", - locking => 1 + file => $filename, + locking => 1, ); -if ($db->error()) { - die "ERROR: " . $db->error(); -} ## # basic put/get