RTEMS | testsuites/unit: Add test for rtems_message_queue_construct() with static storage (!1266)

Moksh Panicker (@mokshpanicker) gitlab at rtems.org
Wed May 27 12:14:30 UTC 2026



Moksh Panicker created a merge request: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1266

Project:Branches: mokshpanicker/rtems:msgq-construct-zero-alloc-test to rtems/rtos/rtems:main
Author:   Moksh Panicker



## Summary

testsuites/unit: Add test for rtems_message_queue_construct() with static storage

rtems_message_queue_construct() takes a caller-supplied storage area and a storage_free pointer. When storage_free is NULL, the queue does not own or free the buffer memory, which is the correct pattern for use cases that require no dynamic allocation at runtime.

This property is not currently covered by a test. It is relevant to the TinyUSB port (gsoc#38) where all memory must come from static pools.

The test constructs a queue with a statically allocated storage area and storage_free set to NULL, then exercises send, receive, overflow, and flush to confirm the queue works correctly with static storage.

Verified on arm/realview_pbx_a9_qemu with QEMU 9.0.2, RTEMS 7.0.0.a413333f2f04130e82e15addba402887222c345f, GCC 15.2.0. All 15 checks pass with F:0.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1266
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260527/8d185980/attachment.htm>


More information about the bugs mailing list