X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F71mysql.t;h=4ea9aa2e90b8142fbdfad48bb55723f65c52ebcc;hb=591df363660658ed30e60438c5251ca480925a6f;hp=66e4b2bb255b2f5c578134a5ced726328ccd9d55;hpb=729656c504e5ca25cfebfbbbce69bb1e74268ef6;p=dbsrgits%2FDBIx-Class.git diff --git a/t/71mysql.t b/t/71mysql.t index 66e4b2b..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'); } @@ -454,6 +455,7 @@ ZEROINSEARCH: { # Ensure disappearing RDBMS does not leave the storage in an inconsistent state # Unlike the test in storage/reconnect.t we test live RDBMS-side disconnection +SKIP: for my $cref ( sub { my $schema = shift; @@ -482,6 +484,8 @@ for my $cref ( } ); }, ) { + # version needed for the "read_timeout" feature + DBIx::Class::Optional::Dependencies->skip_without( 'DBD::mysql>=4.023' ); note( "Testing with " . B::Deparse->new->coderef2text($cref) );