Linux bluetooth development
 help / color / mirror / Atom feed
From: "Łukasz Rymanowski" <lukasz.rymanowski@codecoup.pl>
To: linux-bluetooth@vger.kernel.org
Cc: "Łukasz Rymanowski" <lukasz.rymanowski@codecoup.pl>
Subject: [PATCH BlueZ 2/3] mgmt-tester: Add test_le_full
Date: Fri,  9 Feb 2018 18:26:26 +0100	[thread overview]
Message-ID: <20180209172627.20500-3-lukasz.rymanowski@codecoup.pl> (raw)
In-Reply-To: <20180209172627.20500-1-lukasz.rymanowski@codecoup.pl>

---
 tools/mgmt-tester.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/tools/mgmt-tester.c b/tools/mgmt-tester.c
index 1078d185e..191c1cd4d 100644
--- a/tools/mgmt-tester.c
+++ b/tools/mgmt-tester.c
@@ -373,7 +373,7 @@ static void test_condition_complete(struct test_data *data)
 				test_post_teardown, 2, user, free); \
 	} while (0)
 
-#define test_le(name, data, setup, func) \
+#define test_le_full(name, data, setup, func, timeout) \
 	do { \
 		struct test_data *user; \
 		user = new0(struct test_data, 1); \
@@ -386,9 +386,12 @@ static void test_condition_complete(struct test_data *data)
 		user->initial_settings = 0x00000200; \
 		tester_add_full(name, data, \
 				test_pre_setup, test_setup, func, NULL, \
-				test_post_teardown, 2, user, free); \
+				test_post_teardown, timeout, user, free); \
 	} while (0)
 
+#define test_le(name, data, setup, func) \
+	test_le_full(name, data, setup, func, 2)
+
 static void controller_setup(const void *test_data)
 {
 	tester_test_passed();
-- 
2.14.1


  parent reply	other threads:[~2018-02-09 17:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-09 17:26 [PATCH BlueZ 0/3] mgmt-tested: Advertising while connected testcases Łukasz Rymanowski
2018-02-09 17:26 ` [PATCH BlueZ 1/3] emulator: Add initial LE states to btdev and API to set new one Łukasz Rymanowski
2018-02-12  9:09   ` Szymon Janc
2018-02-09 17:26 ` Łukasz Rymanowski [this message]
2018-02-09 17:26 ` [PATCH BlueZ 3/3] mgmt-tester: Add testcases for advertising while connected Łukasz Rymanowski
2018-02-12  9:06   ` Szymon Janc

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=20180209172627.20500-3-lukasz.rymanowski@codecoup.pl \
    --to=lukasz.rymanowski@codecoup.pl \
    --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