X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F71mysql.t;h=4ea9aa2e90b8142fbdfad48bb55723f65c52ebcc;hb=50841788d03e2342a00470eb2f458e717922615b;hp=1b967de8a7823b152ce1fa685fbc84a92accb9a3;hpb=25c1ed5f32dfcefdc12df885669e1dcf9baabbe9;p=dbsrgits%2FDBIx-Class.git diff --git a/t/71mysql.t b/t/71mysql.t index 1b967de..4ea9aa2 100644 --- a/t/71mysql.t +++ b/t/71mysql.t @@ -1,3 +1,4 @@ +BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) } use DBIx::Class::Optional::Dependencies -skip_all_without => 'test_rdbms_mysql'; use strict; @@ -11,7 +12,7 @@ use B::Deparse; use DBI::Const::GetInfoType; use Scalar::Util qw/weaken/; -use lib qw(t/lib); +use DBICTest::Util 'PEEPEENESS'; use DBICTest; my ($dsn, $user, $pass) = @ENV{map { "DBICTEST_MYSQL_${_}" } qw/DSN USER PASS/}; @@ -410,7 +411,7 @@ ZEROINSEARCH: { { local $TODO = "Perl $] is known to leak like a sieve" - if DBIx::Class::_ENV_::PEEPEENESS; + if PEEPEENESS; ok (! defined $orig_dbh, 'Parent $dbh handle is gone'); } @@ -434,7 +435,7 @@ ZEROINSEARCH: { { local $TODO = "Perl $] is known to leak like a sieve" - if DBIx::Class::_ENV_::PEEPEENESS; + if PEEPEENESS; ok (! defined $orig_dbh, 'DBIC operation triggered reconnect - old $dbh is gone'); }