Skip to content
Commit 116998c6 authored by Daniel Leung's avatar Daniel Leung Committed by Anas Nashif
Browse files

tests: kernel: print FAILED when wrong faults caught



For some kernel tests, faults and exceptions are expected.
They are caught and the test would continue if the reasons
for faults are as expected. However, when the unexpected
reasons are encountered, the code simply prints a message
and calls k_fatal_halt(). When running under twister,
these messages are not the expected failed messages so
twister will spin till timeout although the execution
has already been halted. This adds another printk() before
halt to signal twister that the test has failed and bails
early.

Signed-off-by: default avatarDaniel Leung <daniel.leung@intel.com>
parent d650d76d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment