From: Peter Rabbitson Date: Fri, 17 Jun 2016 07:55:59 +0000 (+0200) Subject: Temporary work around to play well with Sub::Quote X-Git-Tag: v0.082840~27 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=58fc8e62e3351c1f6876d022d523a6873426745a;p=dbsrgits%2FDBIx-Class.git Temporary work around to play well with Sub::Quote Properly addressed in mainline as dc715747 --- diff --git a/Changes b/Changes index 6be7110..cedd875 100644 --- a/Changes +++ b/Changes @@ -3,6 +3,7 @@ Revision history for DBIx::Class * Fixes - Work around unreliable $sth->finish() on INSERT ... RETURNING within DBD::Firebird on some compiler/driver combinations (RT#110979) + - Fix leaktest failures with upcoming version of Sub::Quote 0.082821 2016-02-11 17:58 (UTC) * Fixes diff --git a/t/lib/DBICTest/Util/LeakTracer.pm b/t/lib/DBICTest/Util/LeakTracer.pm index e979da1..b81932c 100644 --- a/t/lib/DBICTest/Util/LeakTracer.pm +++ b/t/lib/DBICTest/Util/LeakTracer.pm @@ -234,7 +234,15 @@ sub assert_empty_weakregistry { my $refs = {}; visit_refs ( # only look at the closed over stuffs - refs => [ grep { length ref $_ } map { values %{$_->[2]} } grep { ref $_ eq 'ARRAY' } values %Sub::Quote::QUOTED ], + refs => [ grep { length ref $_ } ( + + # old style Sub::Quote + ( map { values %{ $_->[2]} } grep { ref $_ eq 'ARRAY' } values %Sub::Quote::QUOTED ), + + # new style Sub::Quote + ( map { values %{ $_->{captures}} } grep { ref $_ eq 'HASH' } values %Sub::Quote::QUOTED ), + + )], seen_refs => $refs, action => sub { 1 }, );