Skip to content
Commit 082ca85b authored by Tristan Honscheid's avatar Tristan Honscheid Committed by Carles Cufí
Browse files

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: default avatarTristan Honscheid <honscheid@google.com>
parent 66e8eae6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment