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 headers: Refactor kernel and arch headers. 2019-11-06 16:07:32 -08:00
prj_arm_fp_sharing.conf tests: Never disable SMP 2019-09-26 16:54:06 -04:00
prj_armv8m_mpu_stack_guard.conf tests: Never disable SMP 2019-09-26 16:54:06 -04:00
prj.conf tests: Never disable SMP 2019-09-26 16:54:06 -04:00
protection_no_userspace.conf tests: Never disable SMP 2019-09-26 16:54:06 -04:00
README
sentinel.conf tests: Never disable SMP 2019-09-26 16:54:06 -04:00
testcase.yaml tests: exclude twr_ke18f platform from several user mode tests 2019-09-03 16:44:22 +02:00

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.