test-uhid: Add call to bt_uhid_unregister_all
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 16 Sep 2024 20:21:17 +0000 (16:21 -0400)
committerWootak Jung <wootak.jung@samsung.com>
Thu, 20 Feb 2025 07:43:23 +0000 (16:43 +0900)
This adds a call to bt_uhid_unregister_all so it tests if notification
callback end up calling that.

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
unit/test-uhid.c

index 98e298968e06bcc1d6fbccffd4711e821e0d3387..b9c9ded16e0aea60cbde7145085cb41fc5909495 100755 (executable)
@@ -85,6 +85,7 @@ static void destroy_context(struct context *context)
        if (context->source > 0)
                g_source_remove(context->source);
 
+       bt_uhid_unregister_all(context->uhid);
        bt_uhid_unref(context->uhid);
 
        test_free(context->data);