| Server IP : 68.178.164.50 / Your IP : 216.73.216.142 Web Server : Apache System : Linux 50.164.178.68.host.secureserver.net 5.14.0-611.26.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jan 29 05:24:47 EST 2026 x86_64 User : rathinambschool ( 1053) PHP Version : 8.2.30 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/share/doc/perl-Test-Simple/t/regression/ |
Upload File : |
use Test2::Tools::Tiny;
use strict;
use warnings;
use Test2::IPC;
use Test2::Util qw/CAN_THREAD CAN_REALLY_FORK/;
skip_all 'No IPC' unless CAN_REALLY_FORK || CAN_THREAD;
if (CAN_REALLY_FORK) {
my $pid = fork;
die "Failed to fork: $!" unless defined $pid;
if ($pid) {
waitpid($pid, 0)
}
else {
ok(1, "Pass fork");
exit 0;
}
}
if (CAN_THREAD) {
require threads;
my $thread = threads->create(
sub {
ok(1, "Pass thread");
}
);
$thread->join;
}
done_testing;