<!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/Chandanuvm">Chandan U</a> created a merge request: <a href="https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1066">!1066</a>
</p>
<div class="branch">
Project:Branches: Chandanuvm/rtems:chandan/psxmsgq05-priority-coverage to rtems/rtos/rtems:main
</div>
<div class="author">
Author: Chandan U
</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;">
<p dir="auto" style="color: #3a383f; margin: 0 0 1rem;" align="initial"><strong style="font-weight: 600; margin-top: 0;">Problem</strong></p>
<p dir="auto" style="color: #3a383f; margin: 0 0 1rem;" align="initial">At the moment, we don’t have a dedicated POSIX test that checks the MQ_PRIO_MAX boundary and how priority-based insertion behaves in POSIX message queues.
So there isn’t explicit coverage for the valid priority range, out-of-range rejection, or ordering semantics.</p>
<p dir="auto" style="color: #3a383f; margin: 0 0 1rem;" align="initial"><strong style="font-weight: 600; margin-top: 0;">What Changed</strong></p>
<p dir="auto" style="color: #3a383f; margin: 0 0 1rem;" align="initial">Added a new test psxmsgq05 which exercises priority handling in POSIX message queues.</p>
<p dir="auto" style="color: #3a383f; margin: 0 0 1rem;" align="initial">The test covers:</p>
<ul dir="auto" style="text-align: initial; list-style-type: disc; margin: 0 0 1rem; padding: 0;">
<li style="margin-top: 0; line-height: 1.6em; margin-left: 25px; padding-left: 3px;">
<p style="color: #3a383f; margin: 0 0 1rem;">Printing and confirming the MQ_PRIO_MAX value provided by the toolchain.</p>
</li>
<li style="line-height: 1.6em; margin-left: 25px; padding-left: 3px;">
<p style="color: #3a383f; margin: 0 0 1rem;">Verifying that priorities greater than MQ_PRIO_MAX are rejected with EINVAL.</p>
</li>
<li style="line-height: 1.6em; margin-left: 25px; padding-left: 3px;">
<p style="color: #3a383f; margin: 0 0 1rem;">Sending messages across the full valid range 0 .. MQ_PRIO_MAX.</p>
</li>
<li style="line-height: 1.6em; margin-left: 25px; padding-left: 3px;">
<p style="color: #3a383f; margin: 0 0 1rem;">Checking receive ordering when mixed priorities are queued.</p>
</li>
<li style="line-height: 1.6em; margin-left: 25px; padding-left: 3px;">
<p style="color: #3a383f; margin: 0 0 1rem;">Confirming FIFO behavior when multiple messages share the same priority.</p>
</li>
</ul>
<p dir="auto" style="color: #3a383f; margin: 0 0 1rem;" align="initial"><strong style="font-weight: 600; margin-top: 0;">How Tested</strong></p>
<p dir="auto" style="color: #3a383f; margin: 0 0 1rem;" align="initial">Built for SPARC/ERC32 and ran on the SIS simulator.</p>
<p dir="auto" style="color: #3a383f; margin: 0 0 1rem;" align="initial"><strong style="font-weight: 600; margin-top: 0;">Command used:</strong></p>
<p dir="auto" style="color: #3a383f; margin: 0 0 1rem;" align="initial"><code style="font-size: 90%; color: #18171d; word-wrap: break-word; background-color: #ececef; border-radius: .25rem; margin-top: 0; font-weight: inherit; overflow-wrap: break-word; white-space: break-spaces; 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; word-break: keep-all; padding: 0.125rem 0.25rem;">/path/to/rtems-test --rtems-bsp=erc32-sis \ build/sparc/erc32/testsuites/psxtests/psxmsgq05.exe</code></p>
<p dir="auto" style="color: #3a383f; margin: 0 0 1rem;" align="initial">Test completed successfully.
Output includes the printed MQ_PRIO_MAX value and all validation steps.</p>
<div class="gl-relative markdown-code-block js-markdown-code" style="margin-bottom: 0;">
<pre class="code highlight js-syntax-highlight language-plaintext" v-pre="true" style="display: block; font-size: 14px; color: #3a383f; line-height: 1.6em; overflow-x: auto; border-radius: .25rem; position: relative; 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; word-break: break-all; word-wrap: break-word; background-color: #fbfafd; margin: 0 0 1rem; padding: 12px; border: 1px solid #dcdcde;"><code style="font-size: inherit; color: inherit; word-wrap: normal; word-break: keep-all; background-color: inherit; border-radius: .25rem; white-space: pre; margin-top: 0; 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; overflow-wrap: normal; padding: unset;"><span id="LC1" class="line" lang="plaintext" style="margin-top: 0;">*** BEGIN OF TEST PSXMSGQ 5 ***</span>
<span id="LC2" class="line" lang="plaintext">*** TEST VERSION: 7.0.0.fb67bc866feae0f0788075f2830b01c60f47d66e-modified</span>
<span id="LC3" class="line" lang="plaintext">*** TEST STATE: EXPECTED_PASS</span>
<span id="LC4" class="line" lang="plaintext">*** TEST BUILD:</span>
<span id="LC5" class="line" lang="plaintext">*** TEST TOOLS: 15.2.0 20250808 (RTEMS 7, RSB 72f17919581ef21a523cb2c5b3e566e10fe20d8d, Newlib 038afec1)</span>
<span id="LC6" class="line" lang="plaintext">Init - MQ_PRIO_MAX = 32</span>
<span id="LC7" class="line" lang="plaintext">Init - Open message queue</span>
<span id="LC8" class="line" lang="plaintext">Init - Validate accepted priorities 0..MQ_PRIO_MAX</span>
<span id="LC9" class="line" lang="plaintext">Init - Validate mq_send rejects MQ_PRIO_MAX + 1 with EINVAL</span>
<span id="LC10" class="line" lang="plaintext">Init - Validate mixed-priority receive ordering</span>
<span id="LC11" class="line" lang="plaintext">Init - Validate FIFO ordering for equal priorities</span>
<span id="LC12" class="line" lang="plaintext">Init - Close and unlink message queue</span>
<span id="LC13" class="line" lang="plaintext"></span>
<span id="LC14" class="line" lang="plaintext">*** END OF TEST PSXMSGQ 5 ***</span></code></pre>
<copy-code></copy-code><insert-code-snippet></insert-code-snippet>
</div>
</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/1066">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/2-bo12be9s6xzfwnwd0vwly3ckf/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/1066 at 1771349346
</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/1066"}}</script>
</p>
</div>
</body>
</html>