From: Peter Rabbitson Date: Thu, 25 Sep 2014 13:54:44 +0000 (+0200) Subject: Kill leaktest on smokers with 1.3xx Test::More alphas X-Git-Tag: v0.082800~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=30c81ba900b124d3eac52ed53b800f4192346d4c;p=dbsrgits%2FDBIx-Class.git Kill leaktest on smokers with 1.3xx Test::More alphas This is done so that downstram dependencies of DBIC can be smoked as well, the actual leaktest fix will come later when T::B stabilizes enough to go into beta --- diff --git a/t/52leaks.t b/t/52leaks.t index c566a9a..6039205 100644 --- a/t/52leaks.t +++ b/t/52leaks.t @@ -21,6 +21,19 @@ use strict; use warnings; use Test::More; +use lib qw(t/lib); +use DBICTest::RunMode; + +plan skip_all => "Temporarily no smoke testing of Test::More 1.3xx alphas" if ( + DBICTest::RunMode->is_smoker + and + eval { Test::More->VERSION("1.300") } + and + require ExtUtils::MakeMaker + and + MM->parse_version($INC{"Test/Builder.pm"}) =~ / ^ 1 \. 3.. ... \_ /x +); + my $TB = Test::More->builder; if ($ENV{DBICTEST_IN_PERSISTENT_ENV}) { # without this explicit close older TBs warn in END after a ->reset @@ -45,8 +58,6 @@ if ($ENV{DBICTEST_IN_PERSISTENT_ENV}) { $TB->reset; } -use lib qw(t/lib); -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;