D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
thread-self
/
root
/
usr
/
share
/
doc
/
perl-Test-Simple
/
t
/
Test2
/
regression
/
Filename :
693_ipc_ordering.t
back
Copy
use Test2::Tools::Tiny; use strict; use warnings; skip_all("Test cannot run on perls below 5.8.8") unless "$]" > 5.008007; use Test2::Util qw/CAN_THREAD/; use Test2::IPC; use Test2::API qw/context intercept/; skip_all('System does not have threads') unless CAN_THREAD(); require threads; threads->import; my $events = intercept { threads->create( sub { ok 1, "something $_ nonlocal" for (1 .. 15); } )->join; }; is_deeply( [map { $_->{name} } @$events], [map "something $_ nonlocal", 1 .. 15], "Culled sub-thread events in correct order" ); done_testing;
Name
Size
Last Modified
Owner
Permissions
Actions
693_ipc_ordering.t
0.596
KB
March 30 2018 5:53:02
root
0644
746-forking-subtest.t
1.039
KB
March 30 2018 5:53:02
root
0644
gh_16.t
0.956
KB
March 30 2018 5:53:02
root
0644
ipc_files_abort_exit.t
1.9
KB
March 30 2018 5:53:02
root
0644
2017 © D7net | D704T team