Changeset f343b668 in rtems


Ignore:
Timestamp:
09/21/09 13:14:37 (15 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 5, master
Children:
99acb01
Parents:
687e34b
Message:

2009-09-21 Joel Sherrill <joel.sherrill@…>

  • psxclock/init.c, psxclock/psxclock.scn: Add test case for negative nanoseconds.
Location:
testsuites/psxtests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtests/ChangeLog

    r687e34b rf343b668  
     12009-09-21      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * psxclock/init.c, psxclock/psxclock.scn: Add test case for negative
     4        nanoseconds.
     5
    162009-09-20      Joel Sherrill <joel.sherrill@oarcorp.com>
    27
  • testsuites/psxtests/psxclock/init.c

    r687e34b rf343b668  
    148148  rtems_test_assert( errno == EINVAL );
    149149
    150   /* this is actually a small delay or yield */
     150  /* this is an error */
    151151  tv.tv_sec = -1;
    152152  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" );
    154162  sc = nanosleep ( &tv, &tr );
    155163  rtems_test_assert( sc == -1 );
  • testsuites/psxtests/psxclock/psxclock.scn

    r687e34b rf343b668  
    2121Init: nanosleep - EINVAL (NULL time)
    2222Init: nanosleep - EINVAL (too many nanoseconds)
    23 Init: nanosleep - negative seconds small delay
     23Init: nanosleep - negative seconds - EINVAL
     24Init: nanosleep - negative nanoseconds - EINVAL
    2425Init: nanosleep - delay so small results in one tick
    2526Init: nanosleep - yield with remaining
Note: See TracChangeset for help on using the changeset viewer.