Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH 1/3] unit/avrcp: Refactor tests to use destroy_context()
@ 2014-02-24 13:25 Andrei Emeltchenko
  2014-02-24 13:25 ` [PATCH 2/3] unit/avrcp: Add /TP/PTT/BV-01-I test Andrei Emeltchenko
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Andrei Emeltchenko @ 2014-02-24 13:25 UTC (permalink / raw)
  To: linux-bluetooth

From: Andrei Emeltchenko <andrei.emeltchenko@intel.com>

---
 unit/test-avrcp.c | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/unit/test-avrcp.c b/unit/test-avrcp.c
index 381e7cb..e9fe7e3 100644
--- a/unit/test-avrcp.c
+++ b/unit/test-avrcp.c
@@ -246,15 +246,7 @@ static void execute_context(struct context *context)
 {
 	g_main_loop_run(context->main_loop);
 
-	if (context->source > 0)
-		g_source_remove(context->source);
-
-	avrcp_shutdown(context->session);
-
-	g_main_loop_unref(context->main_loop);
-
-	test_free(context->data);
-	g_free(context);
+	destroy_context(context);
 }
 
 static void test_server(gconstpointer data)
-- 
1.8.3.2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-02-24 16:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-24 13:25 [PATCH 1/3] unit/avrcp: Refactor tests to use destroy_context() Andrei Emeltchenko
2014-02-24 13:25 ` [PATCH 2/3] unit/avrcp: Add /TP/PTT/BV-01-I test Andrei Emeltchenko
2014-02-24 13:25 ` [PATCH 3/3] android/avctp: Set uinput to invalid fd when creating session Andrei Emeltchenko
2014-02-24 16:17 ` [PATCH 1/3] unit/avrcp: Refactor tests to use destroy_context() Luiz Augusto von Dentz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox