X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F52leaks.t;h=e2ed738621d573a7bd4191feff0b65ed52015d88;hb=908aa1bb761ec1da5c061fe9f687598e3f1934bc;hp=61a5d2cfa888607f5edcf02c828a4da9baa58a1a;hpb=fe0708a2d68b5d34b6bc6f7e70164c3e569f1dd0;p=dbsrgits%2FDBIx-Class.git diff --git a/t/52leaks.t b/t/52leaks.t index 61a5d2c..e2ed738 100644 --- a/t/52leaks.t +++ b/t/52leaks.t @@ -362,6 +362,16 @@ for my $slot (keys %$weak_registry) { delete $weak_registry->{$slot} unless $cleared->{hash_merge_singleton}{$weak_registry->{$slot}{weakref}{behavior}}++; } + elsif ( + $slot =~ /^Data::Dumper/ + and + $weak_registry->{$slot}{stacktrace} =~ /\QDBIx::Class::ResultSource::_mk_row_parser/ + ) { + # there should be only one D::D object (used to construct the rowparser) + # more would indicate trouble + delete $weak_registry->{$slot} + unless $cleared->{mk_row_parser_dd_singleton}++; + } elsif (DBIx::Class::_ENV_::INVISIBLE_DOLLAR_AT and $slot =~ /^__TxnScopeGuard__FIXUP__/) { delete $weak_registry->{$slot} }