summaryrefslogtreecommitdiff
path: root/t/op/sleep.t
Commit message (Collapse)AuthorAgeFilesLines
* Use set_up_inc for several unit testsNicolas R2016-08-181-2/+2
| | | | | | | | | | | | | | | Use set_up_inc when require.pl is loaded move plan outside of BEGIN block when no tests are run at BEGIN time. Using set_up_inc allow to run these tests under minitest but also compile them using B::C. This also has the advantage to use a single control point for @INC setup. Note: some tests cannot use 'require test.pl', unshfit is then used for them.
* Test preamble: unify to dot slash test dot plJarkko Hietaniemi2014-10-081-1/+1
|
* Mark all .t and .pm files as non executableRafael Garcia-Suarez2009-06-061-0/+0
|
* Convert t/op/sleep.t to using test.plSteve Peters2005-12-301-1/+8
| | | p4raw-id: //depot/perl@26543
* Patch for t/op/sleep.tAndy Lester2004-08-091-4/+11
| | | | | Message-ID: <20040809051151.GA13872@petdance.com> p4raw-id: //depot/perl@23206
* Fix sleep test: sleep(N) is defined to allow sleeping N-1Chuck D. Phillips1997-05-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | > But I found minor problem here. In some situation, BSD/OS sleep does > not sleep two seconds (at least in my configuration) and it says > op/sleep.t failure. If I ran the test suite again, it passed and show > me 100% OK result. I just read over t/op/sleep.t. Frankly, I'm suprised I haven't seen it fail on HPUX also. On HPUX, SIGALRM is delivered only _on_ the second. Thus, sleep(1) waits until the next even second, sleep(2) waits until the next even second after that, etc. The side effect of this is that sleep(1) causes a delay of 0-1 second, sleep(2) causes a delay of 1-2 seconds, etc. This *should* cause intermittant failure of the sleep test as currently written. I don't have access to a BSD system, but something similar could be happening there. You could argue that this is a bug in the OS sleep(). However, it means that a loop like... while (foo()) { bar(); sleep(); } ...will cycle once-per-second (as long as bar() executes in < 1 second) instead of cycling once-per-(second + bar()-delay). This could be construed as a feature. p5p-msgid: 199705151735.KAA01143@palrel1.hp.com
* perl 5.0 alpha 2perl-5a2Larry Wall1993-10-071-1/+1
| | | | [editor's note: from history.perl.org. The sparc executables originally included in the distribution are not in this commit.]
* perl 4.0.00: (no release announcement available)perl-4.0.00Larry Wall1991-03-211-0/+8
So far, 4.0 is still a beta test version. For the last production version, look in pub/perl.3.0/kits@44.