Commit: 2ab15d89c1b6fb14ee4d00b46f4489a30a6843b4
Parent: 6efdbd8dbd1674cb6fdaa0648f8a17f8d5240dcf
Author: Inga Stotland <inga.stotland@intel.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2021-06-05 03:01:12
Tree: 9507fc2eaf892768acde995b0fb1297b1876eedc

tools/mgmt-tester: Fix expected HCI command accounting This fixes test condition count in the expected HCI command callback. When the expected HCI opcode is detected, mark the condition as done. Any subsequent HCI commands are ignored. Without this fix, in couple of test cases where the expected HCI command is detected more than once, the test may be erroneously reported as a failure or prematurely declared as a success before waiting on an expected MGMT event condition. The test cases where this behavior is fixed: Remove Ext Advertising - Success 1 Remove Ext Advertising - Success 2 Reviewed-by: Tedd Ho-Jeong An <tedd.an@intel.com>

Diffstat

M tools/mgmt-tester.c | 5 ++++-

1 files changed, 4 insertions(+), 1 deletions(-)

View Full Diff | Patch