mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-25 00:00:14 +01: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)
|
||||
{
|
||||
struct libinput *li;
|
||||
struct libinput_event *event;
|
||||
struct libinput_device *device;
|
||||
|
||||
li = litest_create_context();
|
||||
|
|
@ -468,8 +467,7 @@ START_TEST(path_add_invalid_path)
|
|||
|
||||
libinput_dispatch(li);
|
||||
|
||||
while ((event = libinput_get_event(li)))
|
||||
ck_abort();
|
||||
litest_assert_empty_queue(li);
|
||||
|
||||
libinput_unref(li);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue