zephyr/tests/kernel/fatal
Jim Shu e1052a0f8d tests/kernel/fatal: add volatile to prevent compiler optimization
Initialization of local variable 'illegal' can't be optimized, or the
program will jump to the memory contains random value which causes the
unexpected behavior. Add volatile to local variable 'illegal' to prevent
compiler optimization.

Signed-off-by: Jim Shu <cwshu@andestech.com>
2020-01-22 07:08:12 -08:00
..
src tests/kernel/fatal: add volatile to prevent compiler optimization 2020-01-22 07:08:12 -08:00
CMakeLists.txt
prj_arm_fp_sharing.conf
prj_armv8m_mpu_stack_guard.conf
prj.conf
protection_no_userspace.conf
README
sentinel.conf
testcase.yaml

This test case verifies that kernel fatal error handling works correctly.

If a thread causes a CPU exception, and it is not in an ISR or "essential"
thread, the thread gets aborted and the rest of the system executes normally.