tests: ztest: enable ztest_no_yield for all in PM
if CONFIG_PM=y, board will enter low power, which will cause problem for debugger. So for ztest cases, we need enable this to avoid problem. This used to apply to soc/platform level, now remove them. Signed-off-by: Hake Huang <hake.huang@nxp.com>
This commit is contained in:
parent
e486a06f0b
commit
1847b882a2
6 changed files with 1 additions and 16 deletions
|
@ -37,7 +37,4 @@ config NET_L2_ETHERNET
|
||||||
|
|
||||||
endif # DT_HAS_NXP_ENET_MAC_ENABLED && NETWORKING
|
endif # DT_HAS_NXP_ENET_MAC_ENABLED && NETWORKING
|
||||||
|
|
||||||
config ZTEST_NO_YIELD
|
|
||||||
default y if (ZTEST && PM)
|
|
||||||
|
|
||||||
endif # BOARD_RD_RW612_BGA
|
endif # BOARD_RD_RW612_BGA
|
||||||
|
|
|
@ -35,10 +35,6 @@ config PM_MCUX_GPC
|
||||||
default y if HAS_MCUX_GPC
|
default y if HAS_MCUX_GPC
|
||||||
depends on SOC_SERIES_IMXRT11XX && PM
|
depends on SOC_SERIES_IMXRT11XX && PM
|
||||||
|
|
||||||
# Don't allow SOC to sleep after tests complete when PM is enabled
|
|
||||||
config ZTEST_NO_YIELD
|
|
||||||
default y if (ZTEST && PM)
|
|
||||||
|
|
||||||
if SOC_SERIES_IMXRT10XX && PM
|
if SOC_SERIES_IMXRT10XX && PM
|
||||||
|
|
||||||
config CODE_DATA_RELOCATION
|
config CODE_DATA_RELOCATION
|
||||||
|
|
|
@ -17,9 +17,6 @@ config ROM_START_OFFSET
|
||||||
config NUM_IRQS
|
config NUM_IRQS
|
||||||
default 76
|
default 76
|
||||||
|
|
||||||
config ZTEST_NO_YIELD
|
|
||||||
default y if (PM && ZTEST)
|
|
||||||
|
|
||||||
if MBEDTLS
|
if MBEDTLS
|
||||||
#
|
#
|
||||||
# MBEDTLS CTR_DRBG code path needs extra stack space for initialization than
|
# MBEDTLS CTR_DRBG code path needs extra stack space for initialization than
|
||||||
|
|
|
@ -35,9 +35,6 @@ config ROM_START_OFFSET
|
||||||
config NUM_IRQS
|
config NUM_IRQS
|
||||||
default 60
|
default 60
|
||||||
|
|
||||||
config ZTEST_NO_YIELD
|
|
||||||
default y if (ZTEST && PM)
|
|
||||||
|
|
||||||
if MBEDTLS
|
if MBEDTLS
|
||||||
#
|
#
|
||||||
# MBEDTLS CTR_DRBG code path needs extra stack space for initialization than
|
# MBEDTLS CTR_DRBG code path needs extra stack space for initialization than
|
||||||
|
|
|
@ -15,9 +15,6 @@ config NUM_IRQS
|
||||||
config ROM_START_OFFSET
|
config ROM_START_OFFSET
|
||||||
default 0x400 if BOOTLOADER_MCUBOOT
|
default 0x400 if BOOTLOADER_MCUBOOT
|
||||||
|
|
||||||
config ZTEST_NO_YIELD
|
|
||||||
default y if (PM && ZTEST)
|
|
||||||
|
|
||||||
config MCUX_LPTMR_TIMER
|
config MCUX_LPTMR_TIMER
|
||||||
default n if (DT_HAS_NXP_OS_TIMER_ENABLED || DT_HAS_ARM_ARMV8M_SYSTICK_ENABLED)
|
default n if (DT_HAS_NXP_OS_TIMER_ENABLED || DT_HAS_ARM_ARMV8M_SYSTICK_ENABLED)
|
||||||
|
|
||||||
|
|
|
@ -101,6 +101,7 @@ config ZTEST_ASSERT_HOOK
|
||||||
|
|
||||||
config ZTEST_NO_YIELD
|
config ZTEST_NO_YIELD
|
||||||
bool "Do not yield to the idle thread after tests complete"
|
bool "Do not yield to the idle thread after tests complete"
|
||||||
|
default y if PM
|
||||||
help
|
help
|
||||||
When the tests complete, do not yield to the idle thread and instead
|
When the tests complete, do not yield to the idle thread and instead
|
||||||
spin in a loop. This is useful for low power mode tests, where
|
spin in a loop. This is useful for low power mode tests, where
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue