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:
parent
4b7a6bf2b6
commit
75daa436ec
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ ZTEST(workqueue_api, test_k_work_queue_stop)
|
||||||
{
|
{
|
||||||
size_t i;
|
size_t i;
|
||||||
struct k_work work;
|
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 works[NUM_TEST_ITEMS];
|
||||||
struct k_work_queue_config cfg = {
|
struct k_work_queue_config cfg = {
|
||||||
.name = "test_work_q",
|
.name = "test_work_q",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue