diff options
author | Dawid Niedzwiecki <dn@semihalf.com> | 2020-12-15 08:17:49 +0100 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-01-28 19:10:04 +0000 |
commit | bb181f20427409c920226e658aeeb4fe304c1091 (patch) | |
tree | a087cf517f06321f1f85fc065d9c99b05ac9a389 /cts | |
parent | 763df7c4ddf418b182cffe0329923679e2427e48 (diff) | |
download | chrome-ec-bb181f20427409c920226e658aeeb4fe304c1091.tar.gz |
task_set_event: replace the wait arg in tests
The wait argument of task_set_event was used in tests. Replace it in a
consistent way with task_wait_event(0) in all tests.
BUG=b:172360521
BRANCH=none
TEST=run tests
Signed-off-by: Dawid Niedzwiecki <dn@semihalf.com>
Change-Id: I2bb7c2cf3fb538c2ed08e60791465f98e7c47700
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2592489
Commit-Queue: Jett Rink <jettrink@chromium.org>
Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'cts')
-rw-r--r-- | cts/task/dut.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cts/task/dut.c b/cts/task/dut.c index feb25f3f2c..71fe4050ec 100644 --- a/cts/task/dut.c +++ b/cts/task/dut.c @@ -36,10 +36,10 @@ void task_abc(void *data) wake_count[id]++; if (id == 2 && wake_count[id] == repeat_count) { task_set_event(TASK_ID_CTS, TASK_EVENT_WAKE); - task_wait_event(-1); + task_wait_event(0); } else { task_set_event(next, TASK_EVENT_WAKE); - task_wait_event(-1); + task_wait_event(0); } } } |