RTEMS | testsuites/sptests: Add spcan02 POSIX functional test for virtual CAN bus (!1113)
Gedare Bloom (@gedare)
gitlab at rtems.org
Thu Mar 12 00:25:51 UTC 2026
Gedare Bloom started a new discussion on testsuites/sptests/spcan02/init.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1113#note_145081
> + 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 );
I suggest a helper function to alloc/init your `can_test_instance`
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1113#note_145081
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/20260312/39422523/attachment-0001.htm>
More information about the bugs
mailing list