test: switch event conversion tests to use litest devices
authorPeter Hutterer <peter.hutterer@who-t.net>
Tue, 3 Feb 2015 03:42:44 +0000 (13:42 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Tue, 3 Feb 2015 22:14:08 +0000 (08:14 +1000)
commit26140aba235fe91257b8ee7fb3178c92f20a5229
treed5ebb66edc2c722c4002d3bc0d015b84d40a096f
parent536dd6a40fd1f48cdf1cdce888a836708e2e05cc
test: switch event conversion tests to use litest devices

Makes the code use more commonly used paths, no real functional changes at
this point. This was using hand-crafted devices as it predates the
litest_add_for_device() helper.

For an upcoming patch to use the udev ID_INPUT_. tags the
event_conversion_key test requires this change: without it the device will be
tagged with ID_INPUT_KEY but not ID_INPUT_KEYBOARD. This could be fixed by
adding all normal keyboard keys to the uinput device but it's easier to just
re-use litest.

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