tests: error_hook: Fix header name in README

ztest_assert_hook.h does not exist, ztest_error_hook.h should be
included.

Signed-off-by: Reto Schneider <reto.schneider@husqvarnagroup.com>
This commit is contained in:
Reto Schneider 2021-03-22 18:07:45 +01:00 committed by Anas Nashif
parent 0af89fc4ec
commit fbcc5ae155

View file

@ -41,7 +41,7 @@ Step4: Call ztest_set_fault_valid(true) before where your target function
Step1: Add CONFIG_ZTEST_ASSERT_HOOK=y into prj.conf
Step2: Include <ztest_assert_hook.h> in your C code.
Step2: Include <ztest_error_hook.h> in your C code.
Step3: (optional) Define a hook function call ztest_post_assert_fail_hook().