test: properly release a few leaking litest device

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2018-07-26 10:38:16 +10:00
parent 5f589c8582
commit 708b3f0d8e
2 changed files with 6 additions and 2 deletions

View file

@ -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

View file

@ -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);