zephyr/tests/kernel/fatal/exception
Andy Ross d058ed3011 tests/kernel/fatal: Don't swap while locked
This test takes an interrupt lock and tries to call z_swap_unlocked()
while holding it.  That's not legal (in the general case it means
you're breaking a caller's lock!), though in this particular case it
was safe because we'll never return to this.

Regardless, there is a natural z_swap_irqlock() that releases the lock
atomically.  Use that.

Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
2021-05-17 15:27:37 -04:00
..
src tests/kernel/fatal: Don't swap while locked 2021-05-17 15:27:37 -04:00
CMakeLists.txt
prj_arm_fpu_sharing.conf tests: kernel: exception: use cbprintf_nano for arm fpu 2020-12-08 09:25:36 -05:00
prj_armv8m_mpu_stack_guard.conf
prj.conf
protection_no_userspace.conf
README
sentinel.conf tests/kernel/fatal/exception: Remove ticked kernel from stack sentinel test 2021-01-04 20:40:55 -05:00
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.