diff mbox series

[BlueZ,v2,2/2] test-uhid: Add call to bt_uhid_unregister_all

Message ID 20240916202341.238735-2-luiz.dentz@gmail.com (mailing list archive)
State Accepted
Commit f9f98c0b2aa44fe47482e083d428fa3b54ecdeb2
Headers show
Series [BlueZ,v2,1/2] shared/uhid: Fix crash after bt_uhid_unregister_all | expand

Checks

Context Check Description
tedd_an/pre-ci_am success Success
tedd_an/CheckPatch success CheckPatch PASS
tedd_an/GitLint success Gitlint PASS
tedd_an/IncrementalBuild success Incremental Build PASS

Commit Message

Luiz Augusto von Dentz Sept. 16, 2024, 8:23 p.m. UTC
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

This adds a call to bt_uhid_unregister_all so it tests if notification
callback end up calling that.
---
 unit/test-uhid.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/unit/test-uhid.c b/unit/test-uhid.c
index 6871c22eeaa1..c5848bef97f9 100644
--- a/unit/test-uhid.c
+++ b/unit/test-uhid.c
@@ -100,6 +100,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);