Fix wrong libevdev clock test
authorDavid Herrmann <dh.herrmann@gmail.com>
Mon, 28 Oct 2013 16:16:43 +0000 (17:16 +0100)
committerPeter Hutterer <peter.hutterer@who-t.net>
Thu, 31 Oct 2013 01:23:13 +0000 (11:23 +1000)
commit639a5a9b56644c5c6f3d83bac661f5d97e39d1a9
tree41cf909b466d52875b859e13b14446df39c57b99
parent34d52e143d179067d9e0cf35bf6983974f71d731
Fix wrong libevdev clock test

We can rely on CLOCK_MONOTONIC and CLOCK_REALTIME to be different at any
time. However, this does not apply to the ms/us/ns parts of the current
time. Both may be in sync regarding the current micro-seconds state. So
remove the wrong clock us-comparison.

I was able to trigger this on my machine. Chances that both are in sync
are very low so I assume my RTC only provides low granularity and thus
both clocks are sync during boot for higher granularity.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
test/test-libevdev-init.c