test: correct the libevdev initialization in two tests

These are used to create a new struct libevdev so let's not wrongly
initialize them to an existing struct.

Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1186>
This commit is contained in:
Peter Hutterer 2025-04-07 10:36:48 +10:00
parent c59453e4ab
commit 589850e8df

View file

@ -765,7 +765,7 @@ START_TEST(lid_update_hw_on_key_closed_on_init)
struct litest_device *sw = litest_current_device();
struct libinput *li;
struct litest_device *keyboard;
struct libevdev *evdev = sw->evdev;
struct libevdev *evdev;
struct input_event event;
int fd;
int rc;