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:
parent
2ca82ea6c4
commit
9c5ed3b18f
2 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in a new issue