Changeset f343b668 in rtems
- Timestamp:
- 09/21/09 13:14:37 (15 years ago)
- Branches:
- 4.10, 4.11, 5, master
- Children:
- 99acb01
- Parents:
- 687e34b
- Location:
- testsuites/psxtests
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
testsuites/psxtests/ChangeLog
r687e34b rf343b668 1 2009-09-21 Joel Sherrill <joel.sherrill@oarcorp.com> 2 3 * psxclock/init.c, psxclock/psxclock.scn: Add test case for negative 4 nanoseconds. 5 1 6 2009-09-20 Joel Sherrill <joel.sherrill@oarcorp.com> 2 7 -
testsuites/psxtests/psxclock/init.c
r687e34b rf343b668 148 148 rtems_test_assert( errno == EINVAL ); 149 149 150 /* this is a ctually a small delay or yield*/150 /* this is an error */ 151 151 tv.tv_sec = -1; 152 152 tv.tv_nsec = 0; 153 puts( "Init: nanosleep - negative seconds small delay " ); 153 puts( "Init: nanosleep - negative seconds - EINVAL" ); 154 sc = nanosleep ( &tv, &tr ); 155 rtems_test_assert( sc == -1 ); 156 rtems_test_assert( errno == EINVAL ); 157 158 /* this is also an error */ 159 tv.tv_sec = 0; 160 tv.tv_nsec = -1; 161 puts( "Init: nanosleep - negative nanoseconds - EINVAL" ); 154 162 sc = nanosleep ( &tv, &tr ); 155 163 rtems_test_assert( sc == -1 ); -
testsuites/psxtests/psxclock/psxclock.scn
r687e34b rf343b668 21 21 Init: nanosleep - EINVAL (NULL time) 22 22 Init: nanosleep - EINVAL (too many nanoseconds) 23 Init: nanosleep - negative seconds small delay 23 Init: nanosleep - negative seconds - EINVAL 24 Init: nanosleep - negative nanoseconds - EINVAL 24 25 Init: nanosleep - delay so small results in one tick 25 26 Init: nanosleep - yield with remaining
Note: See TracChangeset
for help on using the changeset viewer.