tests: kernel: workq_stop uninitialized variable

test_k_workqueue_stop uses an uninitialized variable, causing
sporadic test failures.

Signed-off-by: Robin Kastberg <robin.kastberg@iar.com>
This commit is contained in:
Robin Kastberg 2025-01-10 11:20:05 +00:00 committed by Benjamin Cabé
commit 75daa436ec

View file

@ -25,7 +25,7 @@ ZTEST(workqueue_api, test_k_work_queue_stop)
{
size_t i;
struct k_work work;
struct k_work_q work_q;
struct k_work_q work_q = {0};
struct k_work works[NUM_TEST_ITEMS];
struct k_work_queue_config cfg = {
.name = "test_work_q",