From 5c04410a0c8bed022d6f5781182612470807a880 Mon Sep 17 00:00:00 2001 From: Vinayak Kariappa Chettimada Date: Sat, 28 Dec 2024 10:09:41 +0100 Subject: [PATCH] tests: Bluetooth: BAP: Fix test wrt stream args to broadcast_source Due to adding subgroup count and streams per subgroup arguments to the broadcast_source test, fix the sink test that was not ported due to being merged for change in a different PR. Relates to commit 01e8d0e3e08d ("tests: Bluetooth: BAP: Add subgroup and stream args to broadcast_source"). Fixes commit 303d0b786f49 ("tests: Bluetooth: BAP: Add test to test invalid bcode"). (cherry picked from commit fdf0ec2e5f9cbdc76d86f64df6100b19ca30c48d) Original-Signed-off-by: Vinayak Kariappa Chettimada GitOrigin-RevId: fdf0ec2e5f9cbdc76d86f64df6100b19ca30c48d Cr-Build-Id: 8727268707664402833 Cr-Build-Url: https://cr-buildbucket.appspot.com/build/8727268707664402833 Copybot-Job-Name: zephyr-main-copybot-downstream Change-Id: Ic6454ec590cb8bde01196f395d7881b32a6d4b4c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/6130024 Commit-Queue: ChromeOS Prod (Robot) Tested-by: ChromeOS Prod (Robot) Bot-Commit: ChromeOS Prod (Robot) --- tests/bsim/bluetooth/audio/src/bap_broadcast_sink_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/bsim/bluetooth/audio/src/bap_broadcast_sink_test.c b/tests/bsim/bluetooth/audio/src/bap_broadcast_sink_test.c index cdb818aa7e5..d7f59bc4e00 100644 --- a/tests/bsim/bluetooth/audio/src/bap_broadcast_sink_test.c +++ b/tests/bsim/bluetooth/audio/src/bap_broadcast_sink_test.c @@ -1088,8 +1088,8 @@ static void test_sink_encrypted_incorrect_code(void) test_broadcast_sync(BROADCAST_CODE); /* Wait for all to be started */ - printk("Waiting for streams to be started\n"); - for (size_t i = 0U; i < ARRAY_SIZE(streams); i++) { + printk("Waiting for %zu streams to be started\n", stream_sync_cnt); + for (size_t i = 0U; i < stream_sync_cnt; i++) { k_sem_take(&sem_stream_started, K_FOREVER); }