test: add a bunch of libinput_dispatch() before timeout calls
authorPeter Hutterer <peter.hutterer@who-t.net>
Tue, 28 Jul 2015 23:52:28 +0000 (09:52 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Tue, 28 Jul 2015 23:52:28 +0000 (09:52 +1000)
commit5cec16eede70f6df44b1c39faae614a66594d774
tree1ea534271867a21c8c13db3cd77cca1a0b825941
parent42c25dcb89b9391fe73a60b111c77db6532db746
test: add a bunch of libinput_dispatch() before timeout calls

98346f6a1aa added a warning about timeouts expiring before now. Those warnings
are triggered by a bunch of tests where we have events, then a timeout, then a
libinput_dispatch().

All these are bugs in the test, since we can't guarantee the order of fds (and
thus which fd the events are pulled off first) it's just lucky that they worked.
Insert the required libinput_dispatch() calls.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Jonas Ã…dahl <jadahl@gmail.com>
test/touchpad.c