summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Bettis <jbettis@google.com>2022-01-13 17:17:45 -0700
committerCommit Bot <commit-bot@chromium.org>2022-01-14 18:48:09 +0000
commitbc7e2e97557a00c1ba8eb32f7811594f990664e6 (patch)
tree0b26177e43dc0fc8f7a48120de9230885bd14ed3
parentf3ce439890b991b5a35c97b9aa5e61e9b5f9c7fc (diff)
downloadchrome-ec-bc7e2e97557a00c1ba8eb32f7811594f990664e6.tar.gz
zephyr: Test power_common_state S5 case
Get back some coverage that was lost, by running power_common_state with S5. BRANCH=None BUG=b:214409194 TEST=zmake configure --coverage --test zephyr/test/drivers Change-Id: I48bc4cbf7c94160db1a62fe05708629782b405c7 Signed-off-by: Jeremy Bettis <jbettis@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3387600 Tested-by: Jeremy Bettis <jbettis@chromium.org> Auto-Submit: Jeremy Bettis <jbettis@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
-rw-r--r--zephyr/test/drivers/src/power_common.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/zephyr/test/drivers/src/power_common.c b/zephyr/test/drivers/src/power_common.c
index d355623fc6..a04740365c 100644
--- a/zephyr/test/drivers/src/power_common.c
+++ b/zephyr/test/drivers/src/power_common.c
@@ -216,6 +216,7 @@ static void test_power_exit_hard_off(void)
/* Test exit hard off is cleared on entering S5 */
chipset_exit_hard_off();
power_set_state(POWER_S5);
+ test_power_common_state();
zassert_equal(POWER_S5, power_get_state(), NULL);
/* Go back to G3 and check we stay in G3 */