* [PATCH BlueZ] iso-tester: Test BT_DEFER_SETUP works with getsockopt
@ 2022-08-03 17:22 Luiz Augusto von Dentz
2022-08-03 18:00 ` [BlueZ] " bluez.test.bot
2022-08-04 16:30 ` [PATCH BlueZ] " patchwork-bot+bluetooth
0 siblings, 2 replies; 3+ messages in thread
From: Luiz Augusto von Dentz @ 2022-08-03 17:22 UTC (permalink / raw)
To: linux-bluetooth
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This attempts to test BT_DEFER_SETUP is properly set when the test has
defer flag set.
---
tools/iso-tester.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/tools/iso-tester.c b/tools/iso-tester.c
index cae5fb4b7..56c17b78b 100644
--- a/tools/iso-tester.c
+++ b/tools/iso-tester.c
@@ -1240,6 +1240,19 @@ static void setup_connect(struct test_data *data, uint8_t num, GIOFunc func)
}
if (isodata->defer) {
+ int defer;
+ socklen_t len;
+
+ /* Check if socket has DEFER_SETUP set */
+ len = sizeof(defer);
+ if (getsockopt(sk, SOL_BLUETOOTH, BT_DEFER_SETUP, &defer,
+ &len) < 0) {
+ tester_warn("getsockopt: %s (%d)", strerror(errno),
+ errno);
+ tester_test_failed();
+ return;
+ }
+
memset(&pfd, 0, sizeof(pfd));
pfd.fd = sk;
pfd.events = POLLOUT;
--
2.37.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* RE: [BlueZ] iso-tester: Test BT_DEFER_SETUP works with getsockopt
2022-08-03 17:22 [PATCH BlueZ] iso-tester: Test BT_DEFER_SETUP works with getsockopt Luiz Augusto von Dentz
@ 2022-08-03 18:00 ` bluez.test.bot
2022-08-04 16:30 ` [PATCH BlueZ] " patchwork-bot+bluetooth
1 sibling, 0 replies; 3+ messages in thread
From: bluez.test.bot @ 2022-08-03 18:00 UTC (permalink / raw)
To: linux-bluetooth, luiz.dentz
[-- Attachment #1: Type: text/plain, Size: 1047 bytes --]
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=665142
---Test result---
Test Summary:
CheckPatch PASS 1.47 seconds
GitLint PASS 1.09 seconds
Prep - Setup ELL PASS 27.01 seconds
Build - Prep PASS 0.81 seconds
Build - Configure PASS 8.44 seconds
Build - Make PASS 761.00 seconds
Make Check PASS 11.81 seconds
Make Check w/Valgrind PASS 284.50 seconds
Make Distcheck PASS 234.65 seconds
Build w/ext ELL - Configure PASS 8.46 seconds
Build w/ext ELL - Make PASS 81.60 seconds
Incremental Build w/ patches PASS 0.00 seconds
Scan Build PASS 473.14 seconds
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH BlueZ] iso-tester: Test BT_DEFER_SETUP works with getsockopt
2022-08-03 17:22 [PATCH BlueZ] iso-tester: Test BT_DEFER_SETUP works with getsockopt Luiz Augusto von Dentz
2022-08-03 18:00 ` [BlueZ] " bluez.test.bot
@ 2022-08-04 16:30 ` patchwork-bot+bluetooth
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+bluetooth @ 2022-08-04 16:30 UTC (permalink / raw)
To: Luiz Augusto von Dentz; +Cc: linux-bluetooth
Hello:
This patch was applied to bluetooth/bluez.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:
On Wed, 3 Aug 2022 10:22:22 -0700 you wrote:
> From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
>
> This attempts to test BT_DEFER_SETUP is properly set when the test has
> defer flag set.
> ---
> tools/iso-tester.c | 13 +++++++++++++
> 1 file changed, 13 insertions(+)
Here is the summary with links:
- [BlueZ] iso-tester: Test BT_DEFER_SETUP works with getsockopt
https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=d9497e0001c0
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-08-04 16:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-03 17:22 [PATCH BlueZ] iso-tester: Test BT_DEFER_SETUP works with getsockopt Luiz Augusto von Dentz
2022-08-03 18:00 ` [BlueZ] " bluez.test.bot
2022-08-04 16:30 ` [PATCH BlueZ] " patchwork-bot+bluetooth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox