tests: Bluetooth: TMAP: Add missing FAIL if register fails

If the register fails it would just return, instead of failing
the test.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
Emil Gydesen 2025-01-03 17:26:12 +01:00 committed by Benjamin Cabé
parent 2ca82ea6c4
commit 9c5ed3b18f
2 changed files with 2 additions and 0 deletions

View file

@ -149,6 +149,7 @@ static void test_main(void)
/* Initialize TMAP */
err = bt_tmap_register(BT_TMAP_ROLE_CG | BT_TMAP_ROLE_UMS);
if (err != 0) {
FAIL("Failed to register TMAP (err %d)\n", err);
return;
}

View file

@ -50,6 +50,7 @@ static void test_main(void)
/* Initialize TMAP */
err = bt_tmap_register(BT_TMAP_ROLE_CT | BT_TMAP_ROLE_UMR);
if (err != 0) {
FAIL("Failed to register TMAP (err %d)\n", err);
return;
}
printk("TMAP initialized. Start advertising...\n");