RTEMS | testsuites/sptests: Add spcan02 POSIX functional test for virtual CAN bus (!1113)
MITHILESH MATTAPALLI (@mithileshm)
gitlab at rtems.org
Fri Mar 13 13:08:36 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_145323
> + can2->frames_to_send = 0;
> +
> + can1->frames_to_receive = 0;
> + can2->frames_to_receive = CAN_FRAMES_TO_SEND;
> +
> + can1->send_interval = CAN_SEND_INTERVAL;
> + can1->burst = CAN_SEND_BURST;
> +
> + atomic_store( &can1->active_tasks, 1 );
> + atomic_store( &can2->active_tasks, 1 );
> +
> + rv = ioctl( can1->fd, RTEMS_CAN_CHIP_START );
> + rtems_test_assert( rv == 0 );
> +
> + rv = ioctl( can2->fd, RTEMS_CAN_CHIP_START );
> + rtems_test_assert( rv == 0 );
Extracted this setup into a new `alloc_and_init_instance()` helper function.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1113#note_145323
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/e6eb5312/attachment-0001.htm>
More information about the bugs
mailing list