projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84c2dc4
)
Fix timing issues with test in sigdispatch.t on certain BSDs
author
Leon Timmermans
<fawaka@gmail.com>
Sun, 20 Feb 2011 15:30:59 +0000
(15:30 +0000)
committer
Chris 'BinGOs' Williams
<chris@bingosnet.co.uk>
Sun, 20 Feb 2011 15:33:14 +0000
(15:33 +0000)
Signed-off-by: Chris 'BinGOs' Williams <chris@bingosnet.co.uk>
t/op/sigdispatch.t
patch
|
blob
|
history
diff --git
a/t/op/sigdispatch.t
b/t/op/sigdispatch.t
index
8e861e1
..
3a0138a
100644
(file)
--- a/
t/op/sigdispatch.t
+++ b/
t/op/sigdispatch.t
@@
-73,7
+73,7
@@
SKIP: {
# test unsafe signal handlers in combination with exceptions
my $action = POSIX::SigAction->new(sub { $gotit--, die }, POSIX::SigSet->new, 0);
- POSIX::sigaction(&POSIX::SIG
USR1
, $action);
- eval {
kill SIGUSR1, $$
} for 1..2;
+ POSIX::sigaction(&POSIX::SIG
ALRM
, $action);
+ eval {
alarm 1; POSIX::sigsuspend(POSIX::SigSet->new)
} for 1..2;
is $gotit, 0, 'Received both signals';
}