aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2017-02-16 16:42:37 +0100
committerHans Verkuil <hans.verkuil@cisco.com>2017-02-16 16:42:37 +0100
commit1edd6920bed585d0ea70a2d400182ba17ee2e7fc (patch)
tree3a4a4f4b0715138c3ed61fb5bea3d8188961701e /utils
parent8d8a29521a3a202268def8c3e648376fb5f4047e (diff)
cec-compliance: fix Request Active Source test
The test didn't first send an 'Active Source' message to ensure that it became the Active Source. This was done when in interactive mode, but in non-interactive mode this never happened. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Diffstat (limited to 'utils')
-rw-r--r--utils/cec-compliance/cec-test-power.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/utils/cec-compliance/cec-test-power.cpp b/utils/cec-compliance/cec-test-power.cpp
index 0f320ed2..12f4adfe 100644
--- a/utils/cec-compliance/cec-test-power.cpp
+++ b/utils/cec-compliance/cec-test-power.cpp
@@ -223,6 +223,10 @@ static int one_touch_play_req_active_source(struct node *node, unsigned me, unsi
{
struct cec_msg msg = {};
+ cec_msg_init(&msg, me, la);
+ cec_msg_active_source(&msg, node->phys_addr);
+ fail_on_test(!transmit_timeout(node, &msg));
+
/* We have now said that we are active source, so receiving a reply to
Request Active Source should fail the test. */
cec_msg_init(&msg, me, la);
@@ -240,7 +244,7 @@ struct remote_subtest one_touch_play_subtests[] = {
{ "Wakeup Text View On", CEC_LOG_ADDR_MASK_TV, one_touch_play_text_view_on_wakeup },
{ "Input change on Image View On", CEC_LOG_ADDR_MASK_TV, one_touch_play_image_view_on_change },
{ "Input change on Text View On", CEC_LOG_ADDR_MASK_TV, one_touch_play_text_view_on_change },
- { "Request Active Source", (__u16)~CEC_LOG_ADDR_MASK_TV, one_touch_play_req_active_source },
+ { "Request Active Source", CEC_LOG_ADDR_MASK_ALL, one_touch_play_req_active_source },
};
const unsigned one_touch_play_subtests_size = ARRAY_SIZE(one_touch_play_subtests);

Privacy Policy