ACIL FM
Dark
Refresh
Current DIR:
/usr/share/doc/perl-Test-Simple/t/Legacy/subtest
/
usr
share
doc
perl-Test-Simple
t
Legacy
subtest
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
args.t
620 B
chmod
View
DL
Edit
Rename
Delete
bail_out.t
1.25 MB
chmod
View
DL
Edit
Rename
Delete
basic.t
4.7 MB
chmod
View
DL
Edit
Rename
Delete
callback.t
1016 B
chmod
View
DL
Edit
Rename
Delete
die.t
535 B
chmod
View
DL
Edit
Rename
Delete
do.t
283 B
chmod
View
DL
Edit
Rename
Delete
events.t
376 B
chmod
View
DL
Edit
Rename
Delete
fork.t
1.2 MB
chmod
View
DL
Edit
Rename
Delete
for_do_t.test
112 B
chmod
View
DL
Edit
Rename
Delete
implicit_done.t
479 B
chmod
View
DL
Edit
Rename
Delete
line_numbers.t
3.77 MB
chmod
View
DL
Edit
Rename
Delete
plan.t
1.34 MB
chmod
View
DL
Edit
Rename
Delete
predicate.t
4.73 MB
chmod
View
DL
Edit
Rename
Delete
singleton.t
712 B
chmod
View
DL
Edit
Rename
Delete
threads.t
430 B
chmod
View
DL
Edit
Rename
Delete
todo.t
5.33 MB
chmod
View
DL
Edit
Rename
Delete
wstat.t
369 B
chmod
View
DL
Edit
Rename
Delete
Edit file: /usr/share/doc/perl-Test-Simple/t/Legacy/subtest/fork.t
#!/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; } };
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply