Skip to content

Commit 3c82521

Browse files
committed
Skip the signal tests under Windows.
1 parent 946ba35 commit 3c82521

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

t/500-signal.t

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ use Parallel::TaskExecutor;
66
use Test2::IPC;
77
use Test2::V0;
88

9+
skip_all('Signals are not reliable under Windows') if $^O eq 'MSWin32';
10+
911
sub new {
1012
return Parallel::TaskExecutor->new(@_);
1113
}
@@ -22,8 +24,8 @@ sub new {
2224
my $t = new()->run(sub {
2325
sleep 1 while 1;
2426
}, catch_error => 1,
25-
SIG => {HUP => sub { exit 0 }});
26-
$t->signal('HUP');
27+
SIG => {KILL => sub { exit 0 }});
28+
$t->signal('KILL');
2729
ok($t->wait());
2830
is($t->data(), undef);
2931
}

0 commit comments

Comments
 (0)