aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2021-07-13 09:50:05 +0200
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2021-07-13 09:50:05 +0200
commit08bfcfc894ceba4c1f574c7eda59a74a1fb5b822 (patch)
tree3680e07c2043c34535f560baa5d9111ed74b2383
parent69f694d33f4c15a04ecfe6612a3c1e37ecf1fc6c (diff)
cec-compliance: use send_timer_error for one more test
The 'Day error: November 31, at 6:00 am, for 1 hr.' test can also use the send_timer_error helper. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
-rw-r--r--utils/cec-compliance/cec-test.cpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/utils/cec-compliance/cec-test.cpp b/utils/cec-compliance/cec-test.cpp
index fc8c32e5..e123bf08 100644
--- a/utils/cec-compliance/cec-test.cpp
+++ b/utils/cec-compliance/cec-test.cpp
@@ -1794,18 +1794,7 @@ static int timer_errors(struct node *node, unsigned me, unsigned la, bool intera
struct cec_msg msg;
/* Day error: November 31, at 6:00 am, for 1 hr. */
- cec_msg_init(&msg, me, la);
- cec_msg_set_analogue_timer(&msg, true, 31, Nov, 6, 0, 1, 0, CEC_OP_REC_SEQ_ONCE_ONLY,
- CEC_OP_ANA_BCAST_TYPE_CABLE, 7668, // 479.25 MHz
- node->remote[la].bcast_sys);
- fail_on_test(!transmit_timeout(node, &msg, 10000));
- fail_on_test(timed_out(&msg));
- if (unrecognized_op(&msg))
- return OK_NOT_SUPPORTED;
- if (cec_msg_status_is_abort(&msg))
- fail_on_test(abort_reason(&msg) != CEC_OP_ABORT_INVALID_OP);
- else
- fail_on_test(!timer_has_error(msg));
+ fail_on_test(send_timer_error(node, me, la, 31, Nov, 6, 0, 1, 0, CEC_OP_REC_SEQ_ONCE_ONLY));
/* Day error: December 32, at 6:00 am, for 1 hr. */
fail_on_test(send_timer_error(node, me, la, 32, Dec, 6, 0, 1, 0, CEC_OP_REC_SEQ_ONCE_ONLY));

Privacy Policy