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.
_______________________________________________ bugs mailing list [email protected] http://lists.rtems.org/mailman/listinfo/bugs
