Added unflocks to all tests so that the tests run on OSX
[dbsrgits/DBM-Deep.git] / t / 22_internal_copy.t
index e75ac0c..699f6c0 100644 (file)
@@ -4,11 +4,13 @@
 use strict;
 use Test::More tests => 13;
 use File::Temp qw( tempfile tempdir );
+use Fcntl qw( :flock );
 
 use_ok( 'DBM::Deep' );
 
 my $dir = tempdir( CLEANUP => 1 );
 my ($fh, $filename) = tempfile( 'tmpXXXX', UNLINK => 1, DIR => $dir );
+flock $fh, LOCK_UN;
 my $db = DBM::Deep->new( $filename );
 
 ##
@@ -50,6 +52,7 @@ is( $db->{copy}{subkey3}, 'subvalue3', "After the second copy, we're still good"
 my $max_keys = 1000;
 
 my ($fh2, $filename2) = tempfile( 'tmpXXXX', UNLINK => 1, DIR => $dir );
+flock $fh2, LOCK_UN;
 {
     my $db = DBM::Deep->new( $filename2 );