summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuval Peress <peress@google.com>2021-09-30 23:56:22 -0600
committerCommit Bot <commit-bot@chromium.org>2021-10-05 14:22:35 +0000
commit288726a9ac8049c98e0985a85ba1d29afd67f393 (patch)
tree6f098a4023a156818df90fee4f81b9bf57f908c0
parent536739789c90807168911c5cafdc90d51784b7f8 (diff)
downloadchrome-ec-288726a9ac8049c98e0985a85ba1d29afd67f393.tar.gz
zephyr: test: isl923x post_init always passes
BRANCH=none BUG=b:201602829 TEST=zmake configure --test zephyr/test/drivers Signed-off-by: Yuval Peress <peress@google.com> Change-Id: I85f80ad1d8233c1fbefff9ab2124c4c39a3d5062 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3198688 Reviewed-by: Aaron Massey <aaronmassey@google.com>
-rw-r--r--zephyr/test/drivers/src/isl923x.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/zephyr/test/drivers/src/isl923x.c b/zephyr/test/drivers/src/isl923x.c
index f31423c9f2..ecb4435306 100644
--- a/zephyr/test/drivers/src/isl923x.c
+++ b/zephyr/test/drivers/src/isl923x.c
@@ -306,6 +306,11 @@ void test_set_mode(void)
zassert_true(!isl923x_emul_is_learn_mode_enabled(isl923x_emul), NULL);
}
+void test_post_init(void)
+{
+ zassert_ok(isl923x_drv.post_init(CHARGER_NUM), NULL);
+}
+
void test_suite_isl923x(void)
{
ztest_test_suite(isl923x,
@@ -317,6 +322,7 @@ void test_suite_isl923x(void)
ztest_unit_test(test_options),
ztest_unit_test(test_get_info),
ztest_unit_test(test_status),
- ztest_unit_test(test_set_mode));
+ ztest_unit_test(test_set_mode),
+ ztest_unit_test(test_post_init));
ztest_run_test_suite(isl923x);
}