From e7bff8f8804e23680ff1fe57062c70debe856d21 Mon Sep 17 00:00:00 2001 From: Stefan Adolfsson Date: Fri, 25 May 2018 14:47:38 +0200 Subject: CEC: Add unit tests for buffer handling Makes sure that we don't have and that we don't introduce buffer overflows in the CEC buffer handling. Signed-off-by: Stefan Adolfsson BUG=b:80288314 BRANCH=none TEST=make -j runtests Change-Id: Iad5f79add99e2582e60f0d11ed53a27ac67e8b8c Reviewed-on: https://chromium-review.googlesource.com/1073415 Commit-Ready: Stefan Adolfsson Tested-by: Stefan Adolfsson Reviewed-by: Randall Spangler Reviewed-by: Zhongze Hu --- test/cec.tasklist | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 test/cec.tasklist (limited to 'test/cec.tasklist') diff --git a/test/cec.tasklist b/test/cec.tasklist new file mode 100644 index 0000000000..7015e106a9 --- /dev/null +++ b/test/cec.tasklist @@ -0,0 +1,19 @@ +/* Copyright 2018 The Chromium OS Authors. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + * + * Test the buffer handling of HDMI CEC + */ + +/** + * List of enabled tasks in the priority order + * + * The first one has the lowest priority. + * + * For each task, use the macro TASK_TEST(n, r, d, s) where : + * 'n' in the name of the task + * 'r' in the main routine of the task + * 'd' in an opaque parameter passed to the routine at startup + * 's' is the stack size in bytes; must be a multiple of 8 + */ +#define CONFIG_TEST_TASK_LIST /* No test task */ -- cgit v1.2.1