tests: kernel: fatal: report testcase results

Report results, do not rely on the test success report at the end.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2023-04-04 11:01:07 +00:00 committed by Carles Cufí
parent ef1a589f61
commit 3f11cf497a

View File

@ -22,7 +22,7 @@ void k_sys_fatal_error_handler(unsigned int reason, const z_arch_esf_t *pEsf)
TC_PRINT("Unexpected reason (exp: %d)\n", expected_reason);
rv = TC_FAIL;
}
TC_END_RESULT_CUSTOM(rv, "test_fatal");
TC_END_REPORT(rv);
arch_system_halt(reason);
}