Aaron Nyholm commented on a discussion on testsuites/libtests/iodev01/init.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1243#note_152724 > + > + /* Test 5 second event */ > + event_args.index = 0; > + event_args.timeout.tv_sec = 0; > + event_args.timeout.tv_nsec = 0; > + event_args.args = NULL; > + > + clock_gettime( CLOCK_REALTIME, &start_time ); > + > + status = ioctl( fd, RTEMS_IODEV_IOCTL_EVENT_WAIT, &event_args ); > + > + clock_gettime( CLOCK_REALTIME, &end_time ); > + _Timespec_Subtract( &start_time, &end_time, &duration ); > + rtems_test_assert( !status ); > + rtems_test_assert( event_args.timedout == false ); > + rtems_test_assert( duration.tv_sec >= 4 ); The `test_iodev` device returns an event after 5 seconds for event 0. This is testing that and with it a successful event occurring using this API. -- View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1243#note_152724 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
