mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-20 06:50:05 +01:00
test: print the device name for a wrong event
So we can rule out any between device race conditions Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
dec1b4f93c
commit
25d309bde7
1 changed files with 4 additions and 2 deletions
|
|
@ -2606,8 +2606,9 @@ litest_print_event(struct libinput_event *event)
|
|||
type = libinput_event_get_type(event);
|
||||
|
||||
fprintf(stderr,
|
||||
"device %s type %s ",
|
||||
"device %s (%s) type %s ",
|
||||
libinput_device_get_sysname(dev),
|
||||
libinput_device_get_name(dev),
|
||||
litest_event_get_type_str(event));
|
||||
switch (type) {
|
||||
case LIBINPUT_EVENT_POINTER_MOTION:
|
||||
|
|
@ -2694,7 +2695,8 @@ litest_assert_event_type(struct libinput_event *event,
|
|||
return;
|
||||
|
||||
fprintf(stderr,
|
||||
"FAILED EVENT TYPE: have %s (%d) but want %s (%d)\n",
|
||||
"FAILED EVENT TYPE: %s: have %s (%d) but want %s (%d)\n",
|
||||
libinput_device_get_name(libinput_event_get_device(event)),
|
||||
litest_event_get_type_str(event),
|
||||
libinput_event_get_type(event),
|
||||
litest_event_type_str(want),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue