test: add an extra loop for slow udev initialization
authorPeter Hutterer <peter.hutterer@who-t.net>
Tue, 26 May 2015 00:44:16 +0000 (20:44 -0400)
committerPeter Hutterer <peter.hutterer@who-t.net>
Wed, 27 May 2015 07:38:24 +0000 (17:38 +1000)
commit753cb25abb4c52135b88d2bf44d0dc9073552abf
tree3dc5945afb391f2fc773f2202d822a6450c7dd5c
parent0c8d76181d35f30014b78385256b3a99471ac93f
test: add an extra loop for slow udev initialization

On slower machines, e.g. VMs, udev isn't fast enough to get the properties set
up by the time we're trying to get the device going. This fails when we try to
add the device with libinput_path_add_device().

We know that all litest devices will have ID_INPUT set, so check for that
before we continue.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
test/litest.c