X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FDBICTest.pm;h=e67c02ab1668a1ec4b187db7ae73b567654c7e78;hb=e0b2dc7456481be6870a23a5927a99c8416c82f7;hp=953b2494200057f5cb42c2d02ef2a65cd7c5b16a;hpb=39c9c72df61c84b595715e3d164bacc0b8e68439;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/t/lib/DBICTest.pm b/t/lib/DBICTest.pm index 953b249..e67c02a 100644 --- a/t/lib/DBICTest.pm +++ b/t/lib/DBICTest.pm @@ -78,7 +78,7 @@ sub _database { for ($db_file, "${db_file}-journal") { next unless -e $_; unlink ($_) or carp ( - "Unable to unlink existing test database file $_ ($!), creation of fresh database / further tests may fail!\n" + "Unable to unlink existing test database file $_ ($!), creation of fresh database / further tests may fail!" ); } @@ -112,6 +112,8 @@ sub _database { } sub __mk_disconnect_guard { + return if DBIx::Class::_ENV_::PEEPEENESS(); # leaks handles, delaying DESTROY, can't work right + my $db_file = shift; return unless -f $db_file;