X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits%2FDBIx-Class.git;a=blobdiff_plain;f=t%2Flib%2FDBICTest%2FRunMode.pm;h=d96fdcde980ec55a2fe28ef433d3d46d579f7e75;hp=6da3eadf647bca147b1be93e85d9ff982ecddb46;hb=d5e5fb4b;hpb=c8194884ef47fd5c537aa47ac1d3d7fa75b96eac diff --git a/t/lib/DBICTest/RunMode.pm b/t/lib/DBICTest/RunMode.pm index 6da3ead..d96fdcd 100644 --- a/t/lib/DBICTest/RunMode.pm +++ b/t/lib/DBICTest/RunMode.pm @@ -99,6 +99,24 @@ EOE } } +sub peepeeness { + return ! $ENV{DBICTEST_ALL_LEAKS} if defined $ENV{DBICTEST_ALL_LEAKS}; + + # don't smoke perls with known issues: + if (__PACKAGE__->is_smoker) { + if ($] == '5.013006') { + # leaky 5.13.6 (fixed in blead/cefd5c7c) + return 1; + } + elsif ($] == '5.013005') { + # not sure why this one leaks, but disable anyway - ANDK seems to make it weep + return 1; + } + } + + return 0; +} + # Mimic $Module::Install::AUTHOR sub is_author {