summaryrefslogtreecommitdiff
path: root/cts/task/cts.testlist
blob: 7c8c5757dfb59acca96195dcc22cb9b1a8c88f38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* Copyright 2016 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 task switching. Task A wakes up B and goes to sleep. Task B wakes
 * up C then goes to sleep. Task C wakes up A then goes to sleep. This is
 * repeated TEST_COUNT times. It's expected all tasks to run exactly
 * TEST_COUNT times. Tick task runs to inject some irregularity.
 */
CTS_TEST(test_task_switch)

/*
 * Test task priority. CTS task wakes up A and C then goes to sleep. Since C
 * has a higher priority, C should run first. This should result in C running
 * one more time than A (or B).
 */
CTS_TEST(test_task_priority)