-
CONFIG_ZTEST_ASSERT_HOOK
¶
Using a pre-defined assert handler and hook function
Type: bool
Help¶
Use the pre-defined common assert fail handler and a post hook to do actions in your test case, this option often enabled when doing error test case. Remember to add ignore_fault tag in yaml file when using twister to run testing.
Default¶
n
Kconfig definition¶
At <Zephyr>/subsys/testsuite/ztest/Kconfig:66
Included via <Zephyr>/Kconfig:8
→ <Zephyr>/Kconfig.zephyr:34
→ <Zephyr>/subsys/Kconfig:55
→ <Zephyr>/subsys/testsuite/Kconfig:6
Menu path: (Top) → Sub Systems and OS Services → Testing → Zephyr testing framework
config ZTEST_ASSERT_HOOK
bool "Using a pre-defined assert handler and hook function"
default n
depends on ZTEST
help
Use the pre-defined common assert fail handler and a post hook to
do actions in your test case, this option often enabled when doing
error test case. Remember to add ignore_fault tag in yaml file when
using twister to run testing.
(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)