aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Fjeldtvedt <jaffe1@gmail.com>2016-08-12 13:21:51 +0200
committerHans Verkuil <hans.verkuil@cisco.com>2016-08-12 13:32:30 +0200
commit5f449c0c4e2d233cbb56623a2c5294ecfbefb5fa (patch)
tree296784706aef59919e2b6fb68948dcec53fcfda7
parentb7112ed3fe53e75b5789d8148195e823442ead0d (diff)
cec-compliance: check that ARC reports are recognized
When we send Report ARC Initiated/Terminated back to the remote device, we should check that they are recognized. Signed-off-by: Johan Fjeldtvedt <jaffe1@gmail.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
-rw-r--r--utils/cec-compliance/cec-test-audio.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/utils/cec-compliance/cec-test-audio.cpp b/utils/cec-compliance/cec-test-audio.cpp
index c60495d8..8126c428 100644
--- a/utils/cec-compliance/cec-test-audio.cpp
+++ b/utils/cec-compliance/cec-test-audio.cpp
@@ -275,7 +275,8 @@ static int arc_initiate_rx(struct node *node, unsigned me, unsigned la, bool int
cec_msg_init(&msg, me, la);
cec_msg_report_arc_initiated(&msg);
- fail_on_test(!transmit(node, &msg));
+ fail_on_test(!transmit_timeout(node, &msg));
+ fail_on_test(unrecognized_op(&msg));
node->remote[la].arc_initiated = true;
return 0;
@@ -309,7 +310,8 @@ static int arc_terminate_rx(struct node *node, unsigned me, unsigned la, bool in
cec_msg_init(&msg, me, la);
cec_msg_report_arc_terminated(&msg);
- fail_on_test(!transmit(node, &msg));
+ fail_on_test(!transmit_timeout(node, &msg));
+ fail_on_test(unrecognized_op(&msg));
return 0;
}

Privacy Policy