X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F52leaks.t;h=f6b5ddba15d6ae4efb8aa042fb0aab0c57c81d42;hb=1115a4219b76d4ac212fb91f24ff33e3f95b4e88;hp=e7052d51b3c99dff7197592e1f640a146731ed2a;hpb=4376a1574bc5b25f4b9160e8fc3ce329ae226e0f;p=dbsrgits%2FDBIx-Class.git diff --git a/t/52leaks.t b/t/52leaks.t index e7052d5..f6b5ddb 100644 --- a/t/52leaks.t +++ b/t/52leaks.t @@ -237,8 +237,8 @@ for my $slot (keys %$weak_registry) { unless $cleared->{hash_merge_singleton}{$weak_registry->{$slot}{weakref}{behavior}}++; } elsif ($slot =~ /^__TxnScopeGuard__FIXUP__/) { - die 'The $@ debacle should have been fixed by now!!!' if $] >= 5.013008; - delete $weak_registry->{$slot}; + delete $weak_registry->{$slot} + if $] > 5.013001 and $] < 5.013008; } } @@ -260,7 +260,7 @@ $_->result_source_instance(undef) for ( DBICTest::Schema->source_registrations(undef); my $tb = Test::More->builder; -for my $slot (keys %$weak_registry) { +for my $slot (sort keys %$weak_registry) { ok (! defined $weak_registry->{$slot}{weakref}, "No leaks of $slot") or do { my $diag = '';