mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-06 12:38:06 +02:00
test: add an additional final libinput_dispatch()
After the test device was removed, run one more libinput_dispatch(). This may catch some errors that happen due to the device removal that were ignored for now. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
c75c00dac3
commit
afbb90daeb
1 changed files with 3 additions and 1 deletions
|
|
@ -1597,8 +1597,10 @@ litest_delete_device(struct litest_device *d)
|
||||||
libinput_path_remove_device(d->libinput_device);
|
libinput_path_remove_device(d->libinput_device);
|
||||||
libinput_device_unref(d->libinput_device);
|
libinput_device_unref(d->libinput_device);
|
||||||
}
|
}
|
||||||
if (d->owns_context)
|
if (d->owns_context) {
|
||||||
|
libinput_dispatch(d->libinput);
|
||||||
libinput_unref(d->libinput);
|
libinput_unref(d->libinput);
|
||||||
|
}
|
||||||
close(libevdev_get_fd(d->evdev));
|
close(libevdev_get_fd(d->evdev));
|
||||||
libevdev_free(d->evdev);
|
libevdev_free(d->evdev);
|
||||||
libevdev_uinput_destroy(d->uinput);
|
libevdev_uinput_destroy(d->uinput);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue