RTEMS | Need to invalidate posix message queue object id when delete mq (!364)
Gedare Bloom (@gedare)
gitlab at rtems.org
Wed May 21 16:27:21 UTC 2025
Gedare Bloom started a new discussion on testsuites/psxtests/psxmsgq01/init.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/364#note_122729
> fatal_posix_service_status( status, 0, "mq_close duplicate message queue");
> status = mq_close( Test_q[CLOSED].mq );
> fatal_posix_service_status( status, 0, "mq_close message queue");
> + /*
> + * EBADF - Close a queue that is already closed.
> + */
> + status = mq_close( Test_q[CLOSED].mq );
> + fatal_posix_service_status( status, -1, "mq_close error return status");
> + fatal_posix_service_status( errno, EBADF, "mq_close errno EBADF");
This test case seems to pass without the change to the mqueuedeletesupp.c. So the test case does not seeem to be sufficient to validate the bug or the fix.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/364#note_122729
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/20250521/de558156/attachment-0001.htm>
More information about the bugs
mailing list