Commit 708b3f0d authored by Peter Hutterer's avatar Peter Hutterer

test: properly release a few leaking litest device

Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
parent 5f589c85
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment