Ignore:
Timestamp:
Sep 14, 2009, 5:59:29 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 5, 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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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)
Note: See TracChangeset for help on using the changeset viewer.