mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-05 20:40:15 +01:00
test: properly release a few leaking litest device
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
5f589c8582
commit
708b3f0d8e
2 changed files with 6 additions and 2 deletions
|
|
@ -3403,6 +3403,8 @@ START_TEST(touchpad_tap_palm_dwt_tap)
|
|||
libinput_dispatch(li);
|
||||
|
||||
litest_assert_empty_queue(li);
|
||||
|
||||
litest_delete_device(keyboard);
|
||||
}
|
||||
END_TEST
|
||||
|
||||
|
|
|
|||
|
|
@ -6068,7 +6068,7 @@ START_TEST(touchpad_suspend_abba)
|
|||
continue;
|
||||
|
||||
if (other == SUSPEND_EXT_MOUSE && litest_touchpad_is_external(tp))
|
||||
return;
|
||||
goto out;
|
||||
|
||||
/* That transition is tested elsewhere and has a different
|
||||
* behavior */
|
||||
|
|
@ -6167,6 +6167,7 @@ START_TEST(touchpad_suspend_abba)
|
|||
assert_touchpad_moves(tp);
|
||||
}
|
||||
|
||||
out:
|
||||
litest_delete_device(lid);
|
||||
litest_delete_device(tabletmode);
|
||||
litest_delete_device(extmouse);
|
||||
|
|
@ -6201,7 +6202,7 @@ START_TEST(touchpad_suspend_abab)
|
|||
continue;
|
||||
|
||||
if (other == SUSPEND_EXT_MOUSE && litest_touchpad_is_external(tp))
|
||||
return;
|
||||
goto out;
|
||||
|
||||
/* That transition is tested elsewhere and has a different
|
||||
* behavior */
|
||||
|
|
@ -6317,6 +6318,7 @@ START_TEST(touchpad_suspend_abab)
|
|||
assert_touchpad_moves(tp);
|
||||
}
|
||||
|
||||
out:
|
||||
litest_delete_device(lid);
|
||||
litest_delete_device(tabletmode);
|
||||
litest_delete_device(extmouse);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue