aboutsummaryrefslogtreecommitdiffstats
path: root/utils/cec-compliance/cec-test-adapter.cpp
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2016-09-14 09:42:42 +0200
committerHans Verkuil <hans.verkuil@cisco.com>2016-09-14 09:42:42 +0200
commite935a22d7b3733d9eaa1415426c3250faadf10a1 (patch)
tree601f74063c6f85230ff5888c3e7f253d6d456096 /utils/cec-compliance/cec-test-adapter.cpp
parentaa939cd0d227fd834d8b261906c171bd0c9865a6 (diff)
cec-compliance: only test MONITOR_ALL if cap is set
Don't attempt to test the MONITOR_ALL mode if the corresponding capability isn't set in the driver. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Diffstat (limited to 'utils/cec-compliance/cec-test-adapter.cpp')
-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 58bbf462..b4c58b54 100644
--- a/utils/cec-compliance/cec-test-adapter.cpp
+++ b/utils/cec-compliance/cec-test-adapter.cpp
@@ -827,7 +827,7 @@ int testModes(struct node *node, struct node *node2)
else
fail_on_test(res != EINVAL);
- if (is_root) {
+ if (is_root && (node2->caps & CEC_CAP_MONITOR_ALL)) {
fail_on_test(doioctl(node2, CEC_G_MODE, &m));
fail_on_test(m != mode);
fail_on_test(flush_pending_msgs(node2));

Privacy Policy