Added unflocks to all tests so that the tests run on OSX
[dbsrgits/DBM-Deep.git] / t / 18_export.t
index 77d9e4f..a7127bb 100644 (file)
@@ -4,6 +4,7 @@
 use strict;
 use Test::More tests => 2;
 use File::Temp qw( tempfile tempdir );
+use Fcntl qw( :flock );
 
 use_ok( 'DBM::Deep' );
 
@@ -12,6 +13,7 @@ my $dir = tempdir( CLEANUP => 1 );
 my $struct;
 {
     my ($fh, $filename) = tempfile( 'tmpXXXX', UNLINK => 1, DIR => $dir );
+    flock $fh, LOCK_UN;
     my $db = DBM::Deep->new( $filename );
 
     ##