repeatedly deleting a key will produce blist errors
jettero@cpan.org [Thu, 26 Jun 2008 18:18:46 +0000 (18:18 +0000)]
git-svn-id: http://svn.ali.as/cpan/trunk/DBM-Deep@3641 88f4d9cd-8a04-0410-9d60-8f63309c3137

t/50_deletes.t [new file with mode: 0644]

diff --git a/t/50_deletes.t b/t/50_deletes.t
new file mode 100644 (file)
index 0000000..f978013
--- /dev/null
@@ -0,0 +1,23 @@
+
+use strict;
+use Test;
+use DBM::Deep;
+use t::common qw( new_fh );
+
+my ($fh, $filename) = new_fh();
+my $db = DBM::Deep->new( file => $filename, fh => $fh, );
+
+my $max = 10;
+
+plan tests => $max;
+
+my $x = 0;
+while( $x < $max ) {
+    eval {
+        delete $db->{borked}{test};
+        $db->{borked}{test} = 1;
+    };
+
+    ok($@, '');
+    $x++;
+}