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