summaryrefslogtreecommitdiff
path: root/cts/task
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2022-06-27 14:45:32 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-06-30 21:09:16 +0000
commit34caba9182678ae4f304ae90271b8d11470c8c7b (patch)
treeebd7f7eee0ccd98d635064091c8af36573e0beda /cts/task
parentcaee006db1d7e7ed6b012063509bcdf4d63fd639 (diff)
downloadchrome-ec-34caba9182678ae4f304ae90271b8d11470c8c7b.tar.gz
cts/task/dut.c: Format with clang-format
BUG=b:236386294 BRANCH=none TEST=none Change-Id: Ic54f142b71c5d8bd2295776f8b3f3e036965d30e Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3729763 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'cts/task')
-rw-r--r--cts/task/dut.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/cts/task/dut.c b/cts/task/dut.c
index 71fe4050ec..d895301d61 100644
--- a/cts/task/dut.c
+++ b/cts/task/dut.c
@@ -70,15 +70,15 @@ enum cts_rc test_task_switch(void)
}
if (wake_count[0] != repeat_count || wake_count[1] != repeat_count) {
- CPRINTS("Unexpected counter values: %d %d %d",
- wake_count[0], wake_count[1], wake_count[2]);
+ CPRINTS("Unexpected counter values: %d %d %d", wake_count[0],
+ wake_count[1], wake_count[2]);
return CTS_RC_FAILURE;
}
/* TODO: Verify no tasks are ready, no events are pending. */
- if (*task_get_event_bitmap(TASK_ID_A)
- || *task_get_event_bitmap(TASK_ID_B)
- || *task_get_event_bitmap(TASK_ID_C)) {
+ if (*task_get_event_bitmap(TASK_ID_A) ||
+ *task_get_event_bitmap(TASK_ID_B) ||
+ *task_get_event_bitmap(TASK_ID_C)) {
CPRINTS("Events are pending");
return CTS_RC_FAILURE;
}
@@ -102,17 +102,17 @@ enum cts_rc test_task_priority(void)
return CTS_RC_FAILURE;
}
- if (wake_count[0] != repeat_count - 1
- || wake_count[1] != repeat_count - 1) {
- CPRINTS("Unexpected counter values: %d %d %d",
- wake_count[0], wake_count[1], wake_count[2]);
+ if (wake_count[0] != repeat_count - 1 ||
+ wake_count[1] != repeat_count - 1) {
+ CPRINTS("Unexpected counter values: %d %d %d", wake_count[0],
+ wake_count[1], wake_count[2]);
return CTS_RC_FAILURE;
}
/* TODO: Verify no tasks are ready, no events are pending. */
- if (*task_get_event_bitmap(TASK_ID_A)
- || *task_get_event_bitmap(TASK_ID_B)
- || *task_get_event_bitmap(TASK_ID_C)) {
+ if (*task_get_event_bitmap(TASK_ID_A) ||
+ *task_get_event_bitmap(TASK_ID_B) ||
+ *task_get_event_bitmap(TASK_ID_C)) {
CPRINTS("Events are pending");
return CTS_RC_FAILURE;
}