X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FDBICTest%2FSchema.pm;h=3aafef02fc7cb3977d1bb9b989f77df0ab7d3e31;hb=de4705b7393350ae7cde8f5409f204747c1a4a4e;hp=9ae6632613b415145d382427683db518d8586757;hpb=dc9818f64c4caa4a3556f381d9e112ac34329113;p=dbsrgits%2FDBIx-Class.git diff --git a/t/lib/DBICTest/Schema.pm b/t/lib/DBICTest/Schema.pm index 9ae6632..3aafef0 100644 --- a/t/lib/DBICTest/Schema.pm +++ b/t/lib/DBICTest/Schema.pm @@ -144,6 +144,17 @@ sub connection { ; }; + # DBD::Firebird and DBD::InterBase could very well talk to the same RDBMS + # make an educated guesstimate based on the DSN + # (worst case scenario we are wrong and the scripts have to wait on each + # other even without actually being able to interfere among themselves) + if ( + ($locktype||'') eq 'InterBase' + and + $_[0] =~ /firebird/i + ) { + $locktype = 'Firebird'; + } # Never hold more than one lock. This solves the "lock in order" issues # unrelated tests may have @@ -154,7 +165,7 @@ sub connection { # which is fine since the type does not match as checked above undef $locker; - my $lockpath = DBICTest::RunMode->tmpdir->file(".dbictest_$locktype.lock"); + my $lockpath = DBICTest::RunMode->tmpdir->file("_dbictest_$locktype.lock"); #warn "$$ $0 $locktype GRABBING LOCK"; my $lock_fh;