test: set the abs resolution after creating the device
authorPeter Hutterer <peter.hutterer@who-t.net>
Tue, 15 Jul 2014 05:35:20 +0000 (15:35 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Sun, 20 Jul 2014 22:56:12 +0000 (08:56 +1000)
commite1484cb7f820ae8284140d3a5ece43b564f19b45
treee48b843b4a9cc5663d2faf140bc5192fbb481cf2
parent475665efdf21641d5f18c02c3862138197c33466
test: set the abs resolution after creating the device

Until uinput gets that capability (likely not before 3.17) all we can do is a
racy approach of setting it after creating it. That won't work well for
anything test where libinput is already listening to udev when the device is
created, but it does work for those cases where libinput is started after the
device was initialized.

And it's a better alternative than not testing anything dependent on
resolution settings.

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