New testing feature that allows specification of the workdir for the tests
[dbsrgits/DBM-Deep.git] / t / 07_locking.t
index c6760ea..09e3c8d 100644 (file)
@@ -3,12 +3,11 @@
 ##
 use strict;
 use Test::More tests => 4;
-use File::Temp qw( tempfile tempdir );
+use t::common qw( new_fh );
 
 use_ok( 'DBM::Deep' );
 
-my $dir = tempdir( CLEANUP => 1 );
-my ($fh, $filename) = tempfile( 'tmpXXXX', UNLINK => 1, DIR => $dir );
+my ($fh, $filename) = new_fh();
 my $db = DBM::Deep->new(
        file => $filename,
        locking => 1,