Changeset ab2422c in rtems


Ignore:
Timestamp:
Sep 14, 2009, 5:59:29 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
a5b04da
Parents:
a512ed2
Message:

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

  • psxtests/psxclock/init.c, psxtests/psxclock/psxclock.scn: Add test case for nanosleep of a very small delay which mathematically is less than a clock tick.
Location:
testsuites
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • testsuites/ChangeLog

    ra512ed2 rab2422c  
     12009-09-14      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * psxtests/psxclock/init.c, psxtests/psxclock/psxclock.scn: Add test
     4        case for nanosleep of a very small delay which mathematically is less
     5        than a clock tick.
     6
    172009-09-13      Joel Sherrill <joel.sherrill@oarcorp.com>
    28
  • testsuites/psxtests/psxclock/init.c

    ra512ed2 rab2422c  
    156156  rtems_test_assert( errno == EINVAL );
    157157
     158  /* this is actually a small delay */
     159  tv.tv_sec = 0;
     160  tv.tv_nsec = 1;
     161  puts( "Init: nanosleep - delay so small results in one tick" );
     162  sc = nanosleep ( &tv, &tr );
     163  rtems_test_assert( !sc );
     164  rtems_test_assert( !tr.tv_sec );
     165  rtems_test_assert( !tr.tv_nsec );
     166
    158167  /* use nanosleep to yield */
    159168
     
    201210  printf( ctime( &tv.tv_sec ) );
    202211
    203   puts( "" );
     212  empty_line();
    204213  puts( "clock_gettime - CLOCK_THREAD_CPUTIME -- ENOSYS" );
    205214  #if defined(_POSIX_THREAD_CPUTIME)
  • testsuites/psxtests/psxclock/psxclock.scn

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