From: rkinyon Date: Thu, 18 Jan 2007 15:16:45 +0000 (+0000) Subject: r14850@rob-kinyons-computer: rob | 2007-01-17 22:21:57 -0500 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=fd433a4e203561f03b5e9997ec224140aa322038;p=dbsrgits%2FDBM-Deep.git r14850@rob-kinyons-computer: rob | 2007-01-17 22:21:57 -0500 Added test for unlocking an unlocked filehandle --- diff --git a/t/07_locking.t b/t/07_locking.t index 09e3c8d..b36086c 100644 --- a/t/07_locking.t +++ b/t/07_locking.t @@ -2,7 +2,8 @@ # DBM::Deep Test ## use strict; -use Test::More tests => 4; +use Test::More tests => 5; +use Test::Exception; use t::common qw( new_fh ); use_ok( 'DBM::Deep' ); @@ -13,6 +14,10 @@ my $db = DBM::Deep->new( locking => 1, ); +lives_ok { + $db->unlock; +} "Can call unlock on an unlocked DB."; + ## # basic put/get ## diff --git a/t/TODO b/t/TODO index 4e7ae62..2645928 100644 --- a/t/TODO +++ b/t/TODO @@ -44,8 +44,6 @@ means that the bless()ing should occur iff Cisa('DBM::Deep')>? =item * How should the inode check for locking happen? -=item * Attempt to unlock an unlocked fh - =item * medium and large pack_sizes Need to make sure I only run the large pack_size test on 64-bit Perls