tests: Bluetooth: MCC: Add invalid testing of test_read_icon_obj_id
Add invalid testing of test_read_icon_obj_id. Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
parent
25b2e99213
commit
f30b46fc7b
1 changed files with 8 additions and 0 deletions
|
@ -1506,6 +1506,14 @@ static void test_read_icon_obj_id(void)
|
|||
{
|
||||
int err;
|
||||
|
||||
/* Invalid behavior */
|
||||
err = bt_mcc_read_icon_obj_id(NULL);
|
||||
if (err == 0) {
|
||||
FAIL("bt_mcc_read_icon_obj_id did not fail with NULL conn");
|
||||
return;
|
||||
}
|
||||
|
||||
/* Valid behavior */
|
||||
UNSET_FLAG(icon_object_id_read);
|
||||
|
||||
err = bt_mcc_read_icon_obj_id(default_conn);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue