RTEMS | testsuites/psxtests/psxmsgq01: Fix timeval subtraction (!1325)
Yang Zhang (@Chloe)
gitlab at rtems.org
Mon Jun 22 06:35:04 UTC 2026
Yang Zhang created a merge request: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1325
Project:Branches: Chloe/rtems:fix-psxmsgq01-timeval-subtraction to rtems/rtos/rtems:main
Author: Yang Zhang
## Summary
This patch fixes the timeval subtraction logic in psxmsgq01/init.c which previously failed to borrow from the seconds component when the microsecond difference was negative.
This bug resulted in negative microsecond values and an off-by-one incorrect seconds count during timed queue verifications.
Additionally, this patch removes the associated "FIXME: This is wrong." comment.
## Generative AI
<!--If you have used AI please use the "AI Contribution" template otherwise leave this blank see our fulls statement at https://www.rtems.org/generative-ai/-->
None
<!--Default settings, if it is a dropdown it will set after submission-->
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1325
You're receiving this email because of your account on gitlab.rtems.org. Unsubscribe from this thread: https://gitlab.rtems.org/-/sent_notifications/4-1i5dw0sinq2uexdgoe4c2lhz0-1d/unsubscribe | Manage all notifications: https://gitlab.rtems.org/-/profile/notifications | Help: https://gitlab.rtems.org/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260622/1147b667/attachment-0001.htm>
More information about the bugs
mailing list