tests: make datetime test more reliably when comparing two almost identical nows
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 21 Feb 2012 20:43:48 +0000 (20:43 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Mon, 27 Feb 2012 09:37:22 +0000 (09:37 +0000)
commit64effe78e76ec434606962a83a250c3b1ab5d612
tree06199402592fbd5f84e3dcd0a8d4f8f75097eded
parentdaa5cae78b35a6997f26949e72b8ecc2dde86ce1
tests: make datetime test more reliably when comparing two almost identical nows

Account for rounding errors in some places, and that two nows are
not always entirely identical, so allow some leeway when comparing
microseconds and seconds. Ran into this too often, esp. when the
system is under load.
tests/check/gst/gstdatetime.c