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:
Reto Schneider 2021-03-22 18:27:44 +01:00 committed by Anas Nashif
commit c59cf6008b

View file

@ -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