Bug 5629 – core.time unittest disabled

Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P2
Component
druntime
Product
D
Version
D2
Platform
x86
OS
FreeBSD
Creation time
2011-02-20T14:46:00Z
Last change time
2014-09-20T10:12:55Z
Assigned to
nobody
Creator
braddr

Comments

Comment #0 by braddr — 2011-02-20T14:46:32Z
Testing obj/core/time [email protected](1544): unittest failure
Comment #1 by braddr — 2011-02-20T18:26:33Z
in TickDuration's static this. freebsd has clock_gettime, so it uses the clock_getres api. The results: ts.tv_nsec = 280, ticksPerSec = 3571428 Later, during the unit test: auto t = TickDuration.from!"nsecs"(1_000_000_000); assert(t.nsecs == 1_000_000_000); t.nsecs is slightly less: t.nsecs = 999999840
Comment #2 by schuetzm — 2014-09-20T10:12:55Z
I guess this can be closed, the unittest in question is long gone.