X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FDBICTest%2FUtil.pm;h=c7aa432385a18a8d925657d52b945f2af4137b9e;hb=821edc0964a64b9d20b7d02c4a738b87e806f32d;hp=d4bac7c7a9815bc562931b6a564635b3c7c13a5b;hpb=c9abd679a19b02556ed765f725c3fd7a68207257;p=dbsrgits%2FDBIx-Class.git diff --git a/t/lib/DBICTest/Util.pm b/t/lib/DBICTest/Util.pm index d4bac7c..c7aa432 100644 --- a/t/lib/DBICTest/Util.pm +++ b/t/lib/DBICTest/Util.pm @@ -20,6 +20,7 @@ BEGIN { use Config; use Carp 'confess'; use Scalar::Util qw(blessed refaddr); +use DBIx::Class::_Util; use base 'Exporter'; our @EXPORT_OK = qw(local_umask stacktrace check_customcond_args visit_namespaces); @@ -38,6 +39,8 @@ sub local_umask { { package DBICTest::Util::UmaskGuard; sub DESTROY { + &DBIx::Class::_Util::detected_reinvoked_destructor; + local ($@, $!); eval { defined (umask ${$_[0]}) or die }; warn ( "Unable to reset old umask ${$_[0]}: " . ($!||'Unknown error') ) @@ -50,7 +53,7 @@ sub stacktrace { $frame++; my (@stack, @frame); - while (@frame = caller($frame++)) { + while (@frame = CORE::caller($frame++)) { push @stack, [@frame[3,1,2]]; }