Skip to content

Commit

Permalink
skip sigdispatch.t on cygwin RT#88814
Browse files Browse the repository at this point in the history
  • Loading branch information
Reini Urban authored and Father Chrysostomos committed Jan 24, 2012
1 parent 8db8f6b commit 0ac0889
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions t/op/sigdispatch.t
Expand Up @@ -41,8 +41,8 @@ is($@, "Alarm!\n", 'after the second loop');
SKIP: {
skip('We can\'t test blocking without sigprocmask', 17)
if is_miniperl() || !$Config{d_sigprocmask};
skip('This doesn\'t work on OpenBSD threaded builds RT#88814', 17)
if $^O eq 'openbsd' && $Config{useithreads};
skip('This doesn\'t work on $^O threaded builds RT#88814', 17)
if $^O =~ /openbsd|cygwin/ && $Config{useithreads};

require POSIX;
my $pending = POSIX::SigSet->new();
Expand All @@ -55,6 +55,8 @@ SKIP: {
$SIG{USR1} = sub { $gotit++ };
kill 'SIGUSR1', $$;
is $gotit, 0, 'Haven\'t received third signal yet';

diag "2nd sigpending crashes on cygwin" if $^O eq 'cygwin';
is POSIX::sigpending($pending), '0 but true', 'sigpending';
is $pending->ismember(&POSIX::SIGUSR1), 1, 'SIGUSR1 is pending';

Expand Down Expand Up @@ -101,7 +103,7 @@ TODO:

SKIP: {
skip("alarm cannot interrupt blocking system calls on $^O", 2)
if ($^O eq 'MSWin32' || $^O eq 'VMS');
if $^O =~ /MSWin32|cygwin|VMS/;
# RT #88774
# make sure the signal handler's called in an eval block *before*
# the eval is popped
Expand Down

0 comments on commit 0ac0889

Please sign in to comment.