r11693@rob-kinyons-powerbook58: rob | 2006-04-30 22:15:38 -0400
[dbsrgits/DBM-Deep.git] / t / 07_locking.t
index e2d9df7..09e3c8d 100644 (file)
@@ -3,16 +3,13 @@
 ##
 use strict;
 use Test::More tests => 4;
-$|=1;
+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",
+       file => $filename,
        locking => 1,
 );