aboutsummaryrefslogtreecommitdiffstats
path: root/utils/cec-compliance
diff options
context:
space:
mode:
authorHans Verkuil <hansverk@cisco.com>2018-10-03 10:08:17 +0200
committerHans Verkuil <hansverk@cisco.com>2018-10-03 10:08:17 +0200
commita42194971cc1ae0b55dd9c45475cda3e969dfcfb (patch)
tree45035b795e709df6ca580ee23bcc891b70c7d565 /utils/cec-compliance
parent7bde5ef172bd4a09b9544788ba9c5dbb1aa9994a (diff)
cec-compliance: fix bad check for transmitted vs pending msgs
The total number of pending messages may be equal to the number of transmitted messages, so replace >= by > in the test. Signed-off-by: Hans Verkuil <hansverk@cisco.com>
Diffstat (limited to 'utils/cec-compliance')
-rw-r--r--utils/cec-compliance/cec-test-adapter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/cec-compliance/cec-test-adapter.cpp b/utils/cec-compliance/cec-test-adapter.cpp
index 4e6d8944..476bb87d 100644
--- a/utils/cec-compliance/cec-test-adapter.cpp
+++ b/utils/cec-compliance/cec-test-adapter.cpp
@@ -1037,7 +1037,7 @@ int testLostMsgs(struct node *node)
* Should be at least the size of the internal message queue and
* close to the number of transmitted messages.
*/
- if (pending_msgs < 18 * 3 || pending_msgs >= xfer_cnt || pending_msgs < xfer_cnt - 2)
+ if (pending_msgs < 18 * 3 || pending_msgs > xfer_cnt || pending_msgs < xfer_cnt - 2)
return fail("There were %d pending messages for %d transmitted messages\n",
pending_msgs, xfer_cnt);

Privacy Policy