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:
parent
b1d2bb0b47
commit
0ef5dac70e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue