For some kernel tests, faults and exceptions are expected. They are caught and the test would continue if the reasons for faults are as expected. However, when the unexpected reasons are encountered, the code simply prints a message and calls k_fatal_halt(). When running under twister, these messages are not the expected failed messages so twister will spin till timeout although the execution has already been halted. This adds another printk() before halt to signal twister that the test has failed and bails early. Signed-off-by: Daniel Leung <daniel.leung@intel.com> |
||
|---|---|---|
| .. | ||
| src | ||
| CMakeLists.txt | ||
| prj.conf | ||
| README | ||
| testcase.yaml | ||
This test case verifies that kernel fatal error logging message can be captured. When the fatal error is triggered, if the debugging message function is turned on, the system can capture the print information.