RTEMS | testsuites/sptests: Add spcan02 POSIX functional test for virtual CAN bus (!1113)

MITHILESH MATTAPALLI (@mithileshm) gitlab at rtems.org
Fri Mar 13 13:10:55 UTC 2026




MITHILESH MATTAPALLI commented on a discussion on testsuites/sptests/spcan02/init.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1113#note_145325

 > +  int         received;
 > +  int         send_interval;
 > +  int         burst;
 > +  atomic_uint active_tasks;
 > +};
 > +
 > +static rtems_task can_receiver( rtems_task_argument arg )
 > +{
 > +  struct can_frame          frame;
 > +  struct can_test_instance *priv;
 > +  int                       ret;
 > +
 > +  priv = (struct can_test_instance *) arg;
 > +
 > +  while (
 > +    priv->frames_to_receive > 0 && priv->received < priv->frames_to_receive

I moved the invariant check to an `assert()` outside the loop and switched to a `do-while`

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1113#note_145325
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/20260313/3c80f77f/attachment-0001.htm>


More information about the bugs mailing list