We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 946ba35 commit 3c82521Copy full SHA for 3c82521
t/500-signal.t
@@ -6,6 +6,8 @@ use Parallel::TaskExecutor;
6
use Test2::IPC;
7
use Test2::V0;
8
9
+skip_all('Signals are not reliable under Windows') if $^O eq 'MSWin32';
10
+
11
sub new {
12
return Parallel::TaskExecutor->new(@_);
13
}
@@ -22,8 +24,8 @@ sub new {
22
24
my $t = new()->run(sub {
23
25
sleep 1 while 1;
26
}, catch_error => 1,
- SIG => {HUP => sub { exit 0 }});
- $t->signal('HUP');
27
+ SIG => {KILL => sub { exit 0 }});
28
+ $t->signal('KILL');
29
ok($t->wait());
30
is($t->data(), undef);
31
0 commit comments