r14214@rob-kinyons-computer (orig r8081): rkinyon | 2006-11-17 20:51:21 -0500
[dbsrgits/DBM-Deep.git] / t / 07_locking.t
index 09e3c8d..b36086c 100644 (file)
@@ -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
 ##