Skip Menu |

This queue is for tickets about the Time-HiRes-Sleep-Until CPAN distribution.

Report information
The Basics
Id: 114031
Status: resolved
Priority: 0/
Queue: Time-HiRes-Sleep-Until

People
Owner: MRDVT [...] cpan.org
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.07
Fixed in: 0.07



Subject: Timing-related (?) test failures
t/001_tests.t may fail like this: # # Tolerance: 0.04 seconds # Sleep Delta: 0.000138044357299804688 # sleep 5 seconds # before=1461799530.55556393 # slept=5.035028 # after=1461799535.59062004 # sleep 0 for an epoch in the past # before=1461799535.59113693 # slept=0 # after=1461799535.59114599 # sleep until nearest 20 second mark # before=1461799535.59153605 # slept1=4.40867000000000003 # after1=1461799540.00025702 # slept2=20.040567 # after2=1461799560.04086208 # Failed test 'mark' # at t/001_tests.t line 72. # 20.041 and 20.000 are not equal to within 0.04 # Failed test 'mark' # at t/001_tests.t line 73. # 0.041 and 0.000 are not equal to within 0.04 # Failed test 'mark' # at t/001_tests.t line 74. # 0.041 and 0.000 are not equal to within 0.04 # sleep until top of minute # before=1461799560.04197097 # slept1=59.974939 # after1=1461799620.01693797 # slept2=1.985044 # after2=1461799622.00202107 # sleep until top of minute # before=1461799622.003057 # slept1=57.997206 # after1=1461799680.00029898 # slept2=59.999933 # after2=1461799740.0002799 # Looks like you failed 3 tests of 25. t/001_tests.t .. Dubious, test returned 3 (wstat 768, 0x300) Failed 3/25 subtests See http://matrix.cpantesters.org/?dist=Time-HiRes-Sleep-Until%200.07 for an overview of test reports --- currently about 3% of all reports are fail reports.
On Thu Apr 28 01:38:06 2016, SREZIC wrote: Show quoted text
> t/001_tests.t may fail like this: > # Failed test 'mark' > # at t/001_tests.t line 72. > # 20.041 and 20.000 are not equal to within 0.04 > > # Failed test 'mark' > # at t/001_tests.t line 73. > # 0.041 and 0.000 are not equal to within 0.04
Sleep is not accurate on heavily loaded systems. I could just skip all tests but a recommendation on how to determine exactly when to skip would be appreciated.
On Thu Apr 28 01:38:06 2016, SREZIC wrote: Show quoted text
> t/001_tests.t may fail like this: > See http://matrix.cpantesters.org/?dist=Time-HiRes-Sleep-Until%200.07 > for an overview of test reports --- currently about 3% of all reports > are fail reports.
The package now skips tests on machines that cannot accurately sleep within 1ms.