diff options
author | Jett Rink <jettrink@chromium.org> | 2020-07-20 12:02:23 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-07-21 20:56:22 +0000 |
commit | 783ba1855035fa1827a701b1d905dabedbb9bb7a (patch) | |
tree | f9278ff1a325e525d1d8225e26b35ec3db4b51bf /test/usb_pe_drp.tasklist | |
parent | e2d358b2d8c78067a19defb0beeb15428459ae26 (diff) | |
download | chrome-ec-783ba1855035fa1827a701b1d905dabedbb9bb7a.tar.gz |
test: Use pd_task for pe test
Instead of calling pe function direction in unit test, use the existing
state machine task for unit tests. This allows the real code to call
into a task_set_event on the PD tasks. See CL:1786462 where this is
needed.
BRANCH=none
BUG=none
TEST=run test passes with and without CL:1786462
Signed-off-by: Jett Rink <jettrink@chromium.org>
Change-Id: If31f946e2253c724dd314b2b22e2265cf46197f4
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2307713
Reviewed-by: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'test/usb_pe_drp.tasklist')
-rw-r--r-- | test/usb_pe_drp.tasklist | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/usb_pe_drp.tasklist b/test/usb_pe_drp.tasklist index 80b3135e56..eb41326e3e 100644 --- a/test/usb_pe_drp.tasklist +++ b/test/usb_pe_drp.tasklist @@ -6,4 +6,5 @@ /** * See CONFIG_TEST_TASK_LIST in config.h for details. */ -#define CONFIG_TEST_TASK_LIST +#define CONFIG_TEST_TASK_LIST \ + TASK_TEST(PD_C0, pd_task, NULL, LARGER_TASK_STACK_SIZE) |