Linux server1.hosting4iran.com 4.18.0-553.123.2.el8_10.x86_64 #1 SMP Thu May 7 15:28:41 EDT 2026 x86_64
LiteSpeed
Server IP : 185.208.174.156 & Your IP : 216.73.216.102
Domains : 326 Domain
User : satitravel
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
doc /
perl-Test-Simple /
t /
Legacy /
subtest /
Delete
Unzip
Name
Size
Permission
Date
Action
args.t
620
B
-rw-r--r--
2018-03-30 05:53
bail_out.t
1.25
KB
-rw-r--r--
2018-03-30 05:53
basic.t
4.7
KB
-rw-r--r--
2018-03-30 05:53
callback.t
1016
B
-rw-r--r--
2018-03-30 05:53
die.t
535
B
-rw-r--r--
2018-03-30 05:53
do.t
283
B
-rw-r--r--
2018-03-30 05:53
events.t
376
B
-rw-r--r--
2018-03-30 05:53
for_do_t.test
112
B
-rw-r--r--
2018-03-30 05:53
fork.t
1.2
KB
-rw-r--r--
2018-03-30 05:53
implicit_done.t
479
B
-rw-r--r--
2018-03-30 05:53
line_numbers.t
3.77
KB
-rw-r--r--
2018-03-30 05:53
plan.t
1.34
KB
-rw-r--r--
2018-03-30 05:53
predicate.t
4.73
KB
-rw-r--r--
2018-03-30 05:53
singleton.t
712
B
-rw-r--r--
2018-03-30 05:53
threads.t
430
B
-rw-r--r--
2018-03-30 05:53
todo.t
5.33
KB
-rw-r--r--
2018-03-30 05:53
wstat.t
369
B
-rw-r--r--
2018-03-30 05:53
Save
Rename
#!/usr/bin/perl -w use strict; use warnings; # HARNESS-NO-STREAM # HARNESS-NO-PRELOAD use Test2::Util qw/CAN_FORK/; BEGIN { unless(CAN_FORK) { require Test::More; Test::More->import(skip_all => "fork is not supported"); } } use IO::Pipe; use Test::Builder; use Test::More; plan 'skip_all' => "This test cannot be run with the current formatter" unless Test::Builder->new->{Stack}->top->format->isa('Test::Builder::Formatter'); plan 'tests' => 1; subtest 'fork within subtest' => sub { plan tests => 2; my $pipe = IO::Pipe->new; my $pid = fork; defined $pid or plan skip_all => "Fork not working"; if ($pid) { $pipe->reader; my $child_output = do { local $/ ; <$pipe> }; waitpid $pid, 0; is $?, 0, 'child exit status'; like $child_output, qr/^[\s#]+Child Done\s*\z/, 'child output'; } else { $pipe->writer; # Force all T::B output into the pipe, for the parent # builder as well as the current subtest builder. my $tb = Test::Builder->new; $tb->output($pipe); $tb->failure_output($pipe); $tb->todo_output($pipe); diag 'Child Done'; exit 0; } };