Skip to content

Commit fb9783d

Browse files
hakehuangdanieldegrasse
authored andcommitted
tests: ztest: add test hold status in DEVICE_PM
for DEVICE_PM and DEVICE_PM_RUNTIME, ztest need hold status like CONFIG_PM, otherwise the following flash will be blocked for some SOC Signed-off-by: Hake Huang <hake.huang@nxp.com>
1 parent d699e8c commit fb9783d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/testsuite/ztest/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ config ZTEST_ASSERT_HOOK
101101

102102
config ZTEST_NO_YIELD
103103
bool "Do not yield to the idle thread after tests complete"
104-
default y if PM
104+
default y if (PM || PM_DEVICE || PM_DEVICE_RUNTIME)
105105
help
106106
When the tests complete, do not yield to the idle thread and instead
107107
spin in a loop. This is useful for low power mode tests, where

0 commit comments

Comments
 (0)