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.


_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to