tests: ztest: Fix assert hook dependency
Without this fix, ztest_set_assert_valid() can only be used when CONFIG_ZTEST_FATAL_HOOK is set. Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com>
This commit is contained in:
parent
8db3683820
commit
c59cf6008b
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ void ztest_post_assert_fail_hook(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_ZTEST_FATAL_HOOK)
|
#if defined(CONFIG_ZTEST_FATAL_HOOK) || defined(CONFIG_ZTEST_ASSERT_HOOK)
|
||||||
#include <syscalls/ztest_error_hook.h>
|
#include <syscalls/ztest_error_hook.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue