<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en" style="--code-editor-font: var(--default-mono-font, "GitLab Mono"), JetBrains Mono, Menlo, DejaVu Sans Mono, Liberation Mono, Consolas, Ubuntu Mono, Courier New, andale mono, lucida console, monospace;">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<title>
GitLab
</title>
<style data-premailer="ignore" type="text/css">
a { color: #1068bf; }
</style>
<style>img {
max-width: 100%; height: auto;
}
body {
font-size: .875rem;
}
body {
-webkit-text-shadow: rgba(255,255,255,.01) 0 0 1px;
}
body {
font-family: "GitLab Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans",Ubuntu,Cantarell,"Helvetica Neue",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"; font-size: inherit;
}
</style>
</head>
<body style="font-size: inherit; -webkit-text-shadow: rgba(255,255,255,.01) 0 0 1px; font-family: "GitLab Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans",Ubuntu,Cantarell,"Helvetica Neue",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";">
<div class="content">
<p class="details" style="font-style: italic; color: #626168;">
<a href="https://gitlab.rtems.org/mokshpanicker">Moksh Panicker</a> created a merge request: <a href="https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1266">!1266</a>
</p>
<div class="branch">
Project:Branches: mokshpanicker/rtems:msgq-construct-zero-alloc-test to rtems/rtos/rtems:main
</div>
<div class="author">
Author: Moksh Panicker
</div>
<div class="assignee">
Assignees:
</div>
<div class="reviewer">
Reviewers:
</div>
<div class="md gl-mt-5" style="position: relative; z-index: 1; color: #3a383f; word-wrap: break-word; margin-top: 1rem;">
<h2 id="user-content-summary" dir="auto" style="margin-top: 0; margin-bottom: 10px;" align="initial">Summary<a href="#summary" aria-label="Link to heading 'Summary'" data-heading-content="Summary" class="anchor" style="margin-top: 0;"></a>
</h2>
<p dir="auto" style="color: #3a383f; margin: 0 0 1rem;" align="initial">testsuites/unit: Add test for rtems_message_queue_construct() with static storage</p>
<p dir="auto" style="color: #3a383f; margin: 0 0 1rem;" align="initial">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.</p>
<p dir="auto" style="color: #3a383f; margin: 0 0 1rem;" align="initial">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.</p>
<p dir="auto" style="color: #3a383f; margin: 0 0 1rem;" align="initial">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.</p>
<p dir="auto" style="color: #3a383f; margin: 0;" align="initial">Verified on arm/realview_pbx_a9_qemu with QEMU 9.0.2, RTEMS 7.0.0.<a href="https://gitlab.rtems.org/rtems/rtos/rtems/-/commit/a413333f2f04130e82e15addba402887222c345f" title="bsp/arm/tms570: explicitly set CS8 and CREAD in printk init" class="gfm gfm-commit has-tooltip" data-original="a413333f2f04130e82e15addba402887222c345f" data-link="false" data-link-reference="false" data-commit="a413333f2f04130e82e15addba402887222c345f" data-project="26" data-container="body" data-placement="top" data-reference-type="commit" style="font-family: "GitLab Mono", "JetBrains Mono", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; font-variant-ligatures: none; font-size: 95%; margin-top: 0;">a413333f</a>, GCC 15.2.0. All 15 checks pass with F:0.</p>
</div>
</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #626168;">
—
<br>
<a href="https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1266">View it on GitLab</a>.
<br>
You're receiving this email because of your account on <a target="_blank" rel="noopener noreferrer" href="https://gitlab.rtems.org">gitlab.rtems.org</a>. <a href="https://gitlab.rtems.org/-/sent_notifications/3-aclriuyoz2db75zovdjg4am2g/unsubscribe" target="_blank" rel="noopener noreferrer">Unsubscribe</a> from this thread · <a href="https://gitlab.rtems.org/-/profile/notifications" target="_blank" rel="noopener noreferrer" class="mng-notif-link">Manage all notifications</a> · <a href="https://gitlab.rtems.org/help" target="_blank" rel="noopener noreferrer" class="help-link">Help</a>
<span style="color: transparent; font-size: 0; display: none; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0;">
Notification message regarding https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1266 at 1779884070
</span>
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Merge request","url":"https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1266"}}</script>
</p>
</div>
</body>
</html>