Linux sagir-us1.hostever.us 5.14.0-570.51.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 8 09:41:34 EDT 2025 x86_64
LiteSpeed
Server IP : 104.247.108.91 & Your IP : 216.73.216.26
Domains : 74 Domain
User : georgeto
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
doc /
perl-Test-Simple /
t /
Test2 /
behavior /
Delete
Unzip
Name
Size
Permission
Date
Action
Formatter.t
1.64
KB
-rw-r--r--
2020-10-22 03:10
Subtest_buffer_formatter.t
2.62
KB
-rw-r--r--
2020-10-22 03:10
Subtest_callback.t
906
B
-rw-r--r--
2020-10-22 03:10
Subtest_events.t
441
B
-rw-r--r--
2020-10-22 03:10
Subtest_plan.t
355
B
-rw-r--r--
2020-10-22 03:10
Subtest_todo.t
932
B
-rw-r--r--
2020-10-22 03:10
Taint.t
356
B
-rw-r--r--
2020-10-22 03:10
disable_ipc_a.t
203
B
-rw-r--r--
2020-10-22 03:10
disable_ipc_b.t
219
B
-rw-r--r--
2020-10-22 03:10
disable_ipc_c.t
256
B
-rw-r--r--
2020-10-22 03:10
disable_ipc_d.t
458
B
-rw-r--r--
2020-10-22 03:10
err_var.t
177
B
-rw-r--r--
2020-10-22 03:10
init_croak.t
589
B
-rw-r--r--
2020-10-22 03:10
intercept.t
1.09
KB
-rw-r--r--
2020-10-22 03:10
ipc_wait_timeout.t
2.3
KB
-rw-r--r--
2020-10-22 03:10
nested_context_exception.t
2.09
KB
-rw-r--r--
2020-10-22 03:10
no_load_api.t
1.52
KB
-rw-r--r--
2020-10-22 03:10
run_subtest_inherit.t
2.21
KB
-rw-r--r--
2020-10-22 03:10
special_names.t
1.28
KB
-rw-r--r--
2020-10-22 03:10
subtest_bailout.t
1.15
KB
-rw-r--r--
2020-10-22 03:10
trace_signature.t
1.47
KB
-rw-r--r--
2020-10-22 03:10
uuid.t
3.33
KB
-rw-r--r--
2020-10-22 03:10
Save
Rename
use strict; use warnings; BEGIN { $Test2::API::DO_DEPTH_CHECK = 1 } use Test2::Tools::Tiny; use Test2::API qw/context/; skip_all("known to fail on $]") if $] le "5.006002"; sub outer { my $code = shift; my $ctx = context(); $ctx->note("outer"); my $out = eval { $code->() }; $ctx->release; return $out; } sub dies { my $ctx = context(); $ctx->note("dies"); die "Foo"; } sub bad_store { my $ctx = context(); $ctx->note("bad store"); return $ctx; # Emulate storing it somewhere } sub bad_simple { my $ctx = context(); $ctx->note("bad simple"); return; } my @warnings; { local $SIG{__WARN__} = sub { push @warnings => @_ }; eval { dies() }; } ok(!@warnings, "no warnings") || diag @warnings; @warnings = (); my $keep = bad_store(); eval { my $x = 1 }; # Ensure an eval changing $@ does not meddle. { local $SIG{__WARN__} = sub { push @warnings => @_ }; ok(1, "random event"); } ok(@warnings, "got warnings"); like( $warnings[0], qr/context\(\) was called to retrieve an existing context/, "got expected warning" ); $keep = undef; { @warnings = (); local $SIG{__WARN__} = sub { push @warnings => @_ }; bad_simple(); } ok(@warnings, "got warnings"); like( $warnings[0], qr/A context appears to have been destroyed without first calling release/, "got expected warning" ); @warnings = (); outer(\&dies); { local $SIG{__WARN__} = sub { push @warnings => @_ }; ok(1, "random event"); } ok(!@warnings, "no warnings") || diag @warnings; @warnings = (); { local $SIG{__WARN__} = sub { push @warnings => @_ }; outer(\&bad_store); } ok(@warnings, "got warnings"); like( $warnings[0], qr/A context appears to have been destroyed without first calling release/, "got expected warning" ); { @warnings = (); local $SIG{__WARN__} = sub { push @warnings => @_ }; outer(\&bad_simple); } ok(@warnings, "got warnings") || diag @warnings; like( $warnings[0], qr/A context appears to have been destroyed without first calling release/, "got expected warning" ); done_testing;