Skip to content

Commit 584aa3e

Browse files
JordanYatesnashif
authored andcommitted
testsuite: ztest: disable ZTEST_NO_YIELD for COVERAGE_DUMP
Don't enable `ZTEST_NO_YIELD` when `COVERAGE_DUMP` is enabled, since this option spins forever at the end of `main`, while `COVERAGE_DUMP` occurs after `main` returns into `bg_thread_main`. Signed-off-by: Jordan Yates <[email protected]>
1 parent 584b73a commit 584aa3e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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 n if COVERAGE_DUMP
104105
default y if (PM || PM_DEVICE || PM_DEVICE_RUNTIME)
105106
help
106107
When the tests complete, do not yield to the idle thread and instead

0 commit comments

Comments
 (0)