Skip to content

Commit

Permalink
tests: kernel: workq_stop uninitialized variable
Browse files Browse the repository at this point in the history
test_k_workqueue_stop uses an uninitialized variable, causing
sporadic test failures.

Signed-off-by: Robin Kastberg <robin.kastberg@iar.com>
  • Loading branch information
RobinKastberg committed Jan 10, 2025
1 parent ddd795a commit 6bf559f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/kernel/workq/work_queue/src/start_stop.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 6bf559f

Please sign in to comment.