Skip to content

Commit 1847b88

Browse files
hakehuangkartben
authored andcommitted
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 <[email protected]>
1 parent e486a06 commit 1847b88

File tree

6 files changed

+1
-16
lines changed

6 files changed

+1
-16
lines changed

boards/nxp/rd_rw612_bga/Kconfig.defconfig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,4 @@ config NET_L2_ETHERNET
3737

3838
endif # DT_HAS_NXP_ENET_MAC_ENABLED && NETWORKING
3939

40-
config ZTEST_NO_YIELD
41-
default y if (ZTEST && PM)
42-
4340
endif # BOARD_RD_RW612_BGA

soc/nxp/imxrt/Kconfig.defconfig

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@ config PM_MCUX_GPC
3535
default y if HAS_MCUX_GPC
3636
depends on SOC_SERIES_IMXRT11XX && PM
3737

38-
# Don't allow SOC to sleep after tests complete when PM is enabled
39-
config ZTEST_NO_YIELD
40-
default y if (ZTEST && PM)
41-
4238
if SOC_SERIES_IMXRT10XX && PM
4339

4440
config CODE_DATA_RELOCATION

soc/nxp/imxrt/imxrt5xx/Kconfig.defconfig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ config ROM_START_OFFSET
1717
config NUM_IRQS
1818
default 76
1919

20-
config ZTEST_NO_YIELD
21-
default y if (PM && ZTEST)
22-
2320
if MBEDTLS
2421
#
2522
# MBEDTLS CTR_DRBG code path needs extra stack space for initialization than

soc/nxp/imxrt/imxrt6xx/Kconfig.defconfig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ config ROM_START_OFFSET
3535
config NUM_IRQS
3636
default 60
3737

38-
config ZTEST_NO_YIELD
39-
default y if (ZTEST && PM)
40-
4138
if MBEDTLS
4239
#
4340
# MBEDTLS CTR_DRBG code path needs extra stack space for initialization than

soc/nxp/mcx/mcxn/Kconfig.defconfig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ config NUM_IRQS
1515
config ROM_START_OFFSET
1616
default 0x400 if BOOTLOADER_MCUBOOT
1717

18-
config ZTEST_NO_YIELD
19-
default y if (PM && ZTEST)
20-
2118
config MCUX_LPTMR_TIMER
2219
default n if (DT_HAS_NXP_OS_TIMER_ENABLED || DT_HAS_ARM_ARMV8M_SYSTICK_ENABLED)
2320

subsys/testsuite/ztest/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +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
104105
help
105106
When the tests complete, do not yield to the idle thread and instead
106107
spin in a loop. This is useful for low power mode tests, where

0 commit comments

Comments
 (0)