tests: workq: add support for k_work_queue_init()

According to documentation, the memory of struct: k_work_q should
be zeroed.

Signed-off-by: Lixin Guo <lixinx.guo@intel.com>
This commit is contained in:
Lixin Guo 2021-11-15 16:27:25 +08:00 committed by Christopher Friedt
commit 0ef5dac70e

View file

@ -230,7 +230,7 @@ static void test_queue_start(void)
struct k_work_queue_config cfg = {
.name = "wq.preempt",
};
k_work_queue_init(&preempt_queue);
zassert_equal(preempt_queue.flags, 0, NULL);
k_work_queue_start(&preempt_queue, preempt_stack, STACK_SIZE,
PREEMPT_PRIORITY, &cfg);