[PATCH BlueZ v1 2/2] test-uhid: Add call to bt_uhid_unregister_all

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx>

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





[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux