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