X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F52leaks.t;h=cfeaadc4c049a64f5c28294eb5097d90a40b75cb;hb=08a8d8f1b8a69ea29bcceb9f399214943a34905c;hp=c7af7013b2a8f0a638cde80d7d3473249fe2a303;hpb=439a7283a981f27a56e745d99e456fc50a5a018f;p=dbsrgits%2FDBIx-Class.git diff --git a/t/52leaks.t b/t/52leaks.t index c7af701..cfeaadc 100644 --- a/t/52leaks.t +++ b/t/52leaks.t @@ -23,16 +23,16 @@ use strict; use warnings; use Test::More; +BEGIN { + require DBICTest::Util; + plan skip_all => "Your perl version $] appears to leak like a sieve - skipping test" + if DBICTest::Util::PEEPEENESS(); +} use DBICTest::RunMode; use DBICTest::Util::LeakTracer qw(populate_weakregistry assert_empty_weakregistry visit_refs); use Scalar::Util qw(weaken blessed reftype); use DBIx::Class::_Util qw(hrefaddr sigwarn_silencer modver_gt_or_eq modver_gt_or_eq_and_lt); -BEGIN { - plan skip_all => "Your perl version $] appears to leak like a sieve - skipping test" - if DBIx::Class::_ENV_::PEEPEENESS; -} - my $TB = Test::More->builder; if ($ENV{DBICTEST_IN_PERSISTENT_ENV}) {