From: Bastien Nocera <hadess@hadess.net>
To: linux-bluetooth@vger.kernel.org
Subject: [BlueZ PATCH v1 1/3] unit: Speed up unit-avdtp test
Date: Fri, 9 Jan 2026 10:29:00 +0100 [thread overview]
Message-ID: <20260109093602.1224918-2-hadess@hadess.net> (raw)
In-Reply-To: <20260109093602.1224918-1-hadess@hadess.net>
Speed up /TP/SIG/SMG/BI-02-C by reducing the timeout length from 1
second to 100 milliseconds.
This reduces the runtime from 1.5 secs to 0.1 secs.
---
unit/test-avdtp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/unit/test-avdtp.c b/unit/test-avdtp.c
index 460982b2c542..9833b03be408 100644
--- a/unit/test-avdtp.c
+++ b/unit/test-avdtp.c
@@ -148,7 +148,7 @@ static gboolean send_pdu(gpointer user_data)
g_assert_cmpint(len, ==, pdu->size);
if (g_str_equal(context->data->test_name, "/TP/SIG/SMG/BI-02-C"))
- g_timeout_add_seconds(1, context_quit, context);
+ g_timeout_add(100, context_quit, context);
if (pdu->fragmented)
return send_pdu(user_data);
--
2.52.0
next prev parent reply other threads:[~2026-01-09 9:36 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-09 9:28 [BlueZ PATCH v1 0/3] Unit tests speed-up Bastien Nocera
2026-01-09 9:29 ` Bastien Nocera [this message]
2026-01-09 10:26 ` bluez.test.bot
2026-01-09 12:13 ` Bastien Nocera
2026-01-09 9:29 ` [BlueZ PATCH v1 2/3] unit: Speed up unit-gobex-transfer test Bastien Nocera
2026-01-09 9:29 ` [BlueZ PATCH v1 3/3] unit: Speed up unit-ringbuf test Bastien Nocera
2026-01-09 22:40 ` [BlueZ PATCH v1 0/3] Unit tests speed-up patchwork-bot+bluetooth
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=20260109093602.1224918-2-hadess@hadess.net \
--to=hadess@hadess.net \
--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