We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ab1372 commit 8595a39Copy full SHA for 8595a39
tests/kernel/msgq/msgq_api/src/test_msgq_contexts.c
@@ -404,8 +404,11 @@ void test_msgq_empty(void)
404
*/
405
ret = k_msgq_cleanup(&msgq1);
406
zassert_equal(ret, -EBUSY, NULL);
407
+
408
/* put a message to wake that getting thread */
- k_msgq_put(&msgq1, &data[0], K_NO_WAIT);
409
+ ret = k_msgq_put(&msgq1, &data[0], K_NO_WAIT);
410
+ zassert_equal(ret, 0, NULL);
411
412
k_thread_abort(tid);
413
}
414
@@ -429,8 +432,9 @@ void test_msgq_full(void)
429
432
ret = k_sem_init(&end_sema, 0, 1);
430
433
zassert_equal(ret, 0, NULL);
431
434
435
436
437
438
k_tid_t tid = k_thread_create(&tdata2, tstack2, STACK_SIZE,
439
put_full_entry, &msgq1, NULL,
440
NULL, pri, 0, K_NO_WAIT);
0 commit comments