zephyr/tests/kernel/fatal
Andrew Boie 000429c069 tests: fatal: increase coverage
- _SysFatalErrorHandler is supposed to be user-overridable.
The test case now installs its own handler to show that this
has happened properly.

- Use TC_PRINT() TC_ERROR() macros

- Since we have out own _SysFatalErrorHandler, show that
k_panic() works

- Show that _SysFatalErrorHandler gets invoked with the expected
reason code for some of the scenarios.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
2017-06-08 13:49:36 -05:00
..
src tests: fatal: increase coverage 2017-06-08 13:49:36 -05:00
Makefile tests: add fatal test case 2017-04-22 10:31:49 -04:00
prj-arc.conf tests: kernel: fatal: check stack overflow 2017-05-13 15:14:41 -04:00
prj.conf tests: kernel: fatal: check stack overflow 2017-05-13 15:14:41 -04:00
README tests: add fatal test case 2017-04-22 10:31:49 -04:00
testcase.ini tests: kernel: fatal: check stack overflow 2017-05-13 15:14:41 -04: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.