diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2001-10-26 14:39:06 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2001-10-26 14:39:06 +0000 |
commit | c46d503802f31479fba8780314217baa664936af (patch) | |
tree | 32a227a542f0d593425c50dfe484dffa4d0b872b | |
parent | 6d47b937228c87804679e481f9585c659c524592 (diff) | |
download | perl-c46d503802f31479fba8780314217baa664936af.tar.gz |
Time::HiRes::alarm() ain't gonna work either if ualarm() ain't
p4raw-id: //depot/perl@12692
-rw-r--r-- | ext/Time/HiRes/HiRes.t | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ext/Time/HiRes/HiRes.t b/ext/Time/HiRes/HiRes.t index d0300bebe0..0d509f34ff 100644 --- a/ext/Time/HiRes/HiRes.t +++ b/ext/Time/HiRes/HiRes.t @@ -237,14 +237,15 @@ eval { usleep(-2) }; print $@ =~ /::usleep\(-2\): negative time not invented yet/ ? "ok 23\n" : "not ok 23\n"; -eval { alarm(-3) }; -print $@ =~ /::alarm\(-3, 0\): negative time not invented yet/ ? - "ok 24\n" : "not ok 24\n"; - if ($have_ualarm) { + eval { alarm(-3) }; + print $@ =~ /::alarm\(-3, 0\): negative time not invented yet/ ? + "ok 24\n" : "not ok 24\n"; + eval { ualarm(-4) }; print $@ =~ /::ualarm\(-4, 0\): negative time not invented yet/ ? "ok 25\n" : "not ok 25\n"; } else { + skip 24; skip 25; } |