zephyr/subsys/testsuite/ztest
Tristan Honscheid 082ca85b7c ztest: bug: Add friendly name helper function for all phases
The `handle_signal()` function in the new ztest API (`ztest_new.c`) uses
an array of strings to lookup a friendly name for each test phase, but
the array only has three elements despite there being six test phases.
This can lead to an out-of-bounds issue. Replace the array with a helper
function and switch statement.

Signed-off-by: Tristan Honscheid <honscheid@google.com>
2022-03-14 11:32:38 +01:00
..
include ztest: document test rules 2022-02-14 09:31:28 -05:00
src ztest: bug: Add friendly name helper function for all phases 2022-03-14 11:32:38 +01:00
CMakeLists.txt ztest: Update ztest with more powerful testing APIs 2022-01-11 11:47:30 +01:00
Kconfig tests: ztest: add CONFIG_ZTEST_NO_YIELD to keep SOC awake after test 2022-03-07 13:53:14 -06:00