summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/perl/cpan/Test-Simple/lib/Test2/API/Context.pm
diff options
context:
space:
mode:
authorafresh1 <afresh1@openbsd.org>2021-03-01 23:14:32 +0000
committerafresh1 <afresh1@openbsd.org>2021-03-01 23:14:32 +0000
commitde8cc8edbc71bd3e3bc7fbffa27ba0e564c37d8b (patch)
tree5e91ea1711126841ef19ee1ee17705e29dc6baf0 /gnu/usr.bin/perl/cpan/Test-Simple/lib/Test2/API/Context.pm
parentUpdate the MSI addresses for the Armada 8040. This chunk will only be (diff)
downloadwireguard-openbsd-de8cc8edbc71bd3e3bc7fbffa27ba0e564c37d8b.tar.xz
wireguard-openbsd-de8cc8edbc71bd3e3bc7fbffa27ba0e564c37d8b.zip
Import perl-5.32.1
OK sthen@
Diffstat (limited to 'gnu/usr.bin/perl/cpan/Test-Simple/lib/Test2/API/Context.pm')
-rw-r--r--gnu/usr.bin/perl/cpan/Test-Simple/lib/Test2/API/Context.pm8
1 files changed, 7 insertions, 1 deletions
diff --git a/gnu/usr.bin/perl/cpan/Test-Simple/lib/Test2/API/Context.pm b/gnu/usr.bin/perl/cpan/Test-Simple/lib/Test2/API/Context.pm
index 9cb1cfca723..177d9c40724 100644
--- a/gnu/usr.bin/perl/cpan/Test-Simple/lib/Test2/API/Context.pm
+++ b/gnu/usr.bin/perl/cpan/Test-Simple/lib/Test2/API/Context.pm
@@ -2,7 +2,7 @@ package Test2::API::Context;
use strict;
use warnings;
-our $VERSION = '1.302162';
+our $VERSION = '1.302175';
use Carp qw/confess croak/;
@@ -71,6 +71,8 @@ sub DESTROY {
# show the warning about using eq.
no warnings 'uninitialized';
if($self->{+EVAL_ERROR} eq $@ && $hub->is_local) {
+ require Carp;
+ my $mess = Carp::longmess("Context destroyed");
my $frame = $self->{+_IS_SPAWN} || $self->{+TRACE}->frame;
warn <<" EOT";
A context appears to have been destroyed without first calling release().
@@ -87,6 +89,10 @@ release():
Line: $frame->[2]
Tool: $frame->[3]
+Here is a trace to the code that caused the context to be destroyed, this could
+be an exit(), a goto, or simply the end of a scope:
+$mess
+
Cleaning up the CONTEXT stack...
EOT
}