summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJonas Ådahl <jadahl@gmail.com>2016-04-08 15:51:26 +0800
committerPeter Hutterer <peter.hutterer@who-t.net>2016-04-11 07:53:25 +1000
commit240d669bbacd1fce35fbe4973cdd9df6afb01fbf (patch)
tree60dc8aa1713207bde4af6ed6dde329ef4b323e1b /src
parentf44de7cc4fe847be598e7025ec4cd81332b18575 (diff)
test: Handle 32 bit msec time overflows
The libinput_*_get_time() returns a 32 bit unsigned integer, but in the tests we compared them to a 64 bit unsigned integer. This means that when the 32 bit integer overflowed, we'd still compare to a non-overflowed 64 bit integer, causing the tests to fail. This commit fixes this by always casting the millisecond 64 bit unsigned integer to a 32 unsigned integer, triggering the same overflow. Signed-off-by: Jonas Ådahl <jadahl@gmail.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions