From: Peter Hutterer Date: Wed, 30 Jan 2019 04:26:31 +0000 (+1000) Subject: test: add an additional final libinput_dispatch() X-Git-Tag: 1.12.901~74 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=afbb90daebc5528f12a0afc5bda2305404e282b4;p=platform%2Fupstream%2Flibinput.git 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 --- diff --git a/test/litest.c b/test/litest.c index 58622c54..b000a216 100644 --- a/test/litest.c +++ b/test/litest.c @@ -1597,8 +1597,10 @@ litest_delete_device(struct litest_device *d) libinput_path_remove_device(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); + } close(libevdev_get_fd(d->evdev)); libevdev_free(d->evdev); libevdev_uinput_destroy(d->uinput);