From: Andrei Emeltchenko <Andrei.Emeltchenko.news@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH 1/3] unit/avrcp: Refactor tests to use destroy_context()
Date: Mon, 24 Feb 2014 15:25:16 +0200 [thread overview]
Message-ID: <1393248318-5188-1-git-send-email-Andrei.Emeltchenko.news@gmail.com> (raw)
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
next reply other threads:[~2014-02-24 13:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-24 13:25 Andrei Emeltchenko [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1393248318-5188-1-git-send-email-Andrei.Emeltchenko.news@gmail.com \
--to=andrei.emeltchenko.news@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox