mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-04 21:08:07 +02:00
test: fix a scan-build warning (value set but not read)
This test pre-dates litest_assert_empty_queue(), so let's just use that Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
a1a419df6c
commit
8a858fc65e
1 changed files with 1 additions and 3 deletions
|
|
@ -456,7 +456,6 @@ END_TEST
|
||||||
START_TEST(path_add_invalid_path)
|
START_TEST(path_add_invalid_path)
|
||||||
{
|
{
|
||||||
struct libinput *li;
|
struct libinput *li;
|
||||||
struct libinput_event *event;
|
|
||||||
struct libinput_device *device;
|
struct libinput_device *device;
|
||||||
|
|
||||||
li = litest_create_context();
|
li = litest_create_context();
|
||||||
|
|
@ -468,8 +467,7 @@ START_TEST(path_add_invalid_path)
|
||||||
|
|
||||||
libinput_dispatch(li);
|
libinput_dispatch(li);
|
||||||
|
|
||||||
while ((event = libinput_get_event(li)))
|
litest_assert_empty_queue(li);
|
||||||
ck_abort();
|
|
||||||
|
|
||||||
libinput_unref(li);
|
libinput_unref(li);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue