zephyr/tests/kernel/fatal
Andy Ross 32a444c54e kernel: Fix nano_internal.h inclusion
_Swap() is defined in nano_internal.h.  Everything calls _Swap().
Pretty much nothing that called _Swap() included nano_internal.h,
expecting it to be picked up automatically through other headers (as
it happened, from the kernel arch-specific include file).  A new
_Swap() is going to need some other symbols in the inline definition,
so I needed to break that cycle.  Now nothing sees _Swap() defined
anymore.  Put nano_internal.h everywhere it's needed.

Our kernel includes remain a big awful yucky mess.  This makes things
more correct but no less ugly.  Needs cleanup.

Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
2018-02-16 10:44:29 -05:00
..
src kernel: Fix nano_internal.h inclusion 2018-02-16 10:44:29 -05:00
CMakeLists.txt Introduce cmake-based rewrite of KBuild 2017-11-08 20:00:22 -05:00
prj.conf tests: fatal: convert legacy test to ztest 2017-11-13 16:35:27 -05:00
README tests: add fatal test case 2017-04-22 10:31:49 -04:00
sentinel.conf tests: fatal: convert legacy test to ztest 2017-11-13 16:35:27 -05:00
testcase.yaml tests/samples: fixed yaml syntax 2017-12-11 14:47:08 -05: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.