test: remove some useless code triggering a coverity warning

x/y assigned but never used. Dropping those few lines gets rid of the warning
and checks the coordinates correctly now too.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2019-10-30 10:29:46 +10:00
parent 883e0a1eea
commit cfa06b6098

View file

@ -5173,12 +5173,6 @@ verify_left_handed_touch_motion(struct litest_device *finger,
litest_touch_move_to(finger, 0, x + 1, y - 1, x + 20, y - 20, 10);
libinput_dispatch(li);
event = libinput_get_event(li);
p = litest_is_motion_event(event);
x = libinput_event_pointer_get_dx(p);
y = libinput_event_pointer_get_dy(p);
libinput_event_destroy(event);
event = libinput_get_event(li);
ck_assert_notnull(event);