Ignore:
Timestamp:
Nov 12, 2009, 12:21:51 AM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 5, master
Children:
3a6f4e2
Parents:
0c11618
Message:

2009-11-11 Joel Sherrill <joel.sherrill@…>

PR 1466/tests

  • Makefile.am, configure.ac, psxclock/init.c, psxclock/psxclock.doc, psxclock/psxclock.scn, psxkey03/init.c, psxsignal02/init.c, psxsignal03/init.c, psxstack01/init.c: Remove usleep() from tests. Add test specifically to test it since it is deprecated as of POSIX.1-2008.
  • psxusleep/.cvsignore, psxusleep/Makefile.am, psxusleep/init.c, psxusleep/psxusleep.doc, psxusleep/psxusleep.scn: New files.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtests/psxclock/init.c

    r0c11618 rea7d86b  
    3535  unsigned int    remaining;
    3636  struct tm       tm;
    37   useconds_t      useconds;
     37  struct timespec delay_request;
    3838
    3939  puts( "\n\n*** POSIX CLOCK TEST ***" );
     
    207207  rtems_test_assert( !tr.tv_sec && !tr.tv_nsec );
    208208
    209   puts( "Init: usleep - 1.35 seconds" );
    210   useconds = usleep ( 1350000 );
    211   rtems_test_assert( useconds < 1350000 );
     209  puts( "Init: nanosleep - 1.35 seconds" );
     210  delay_request.tv_sec = 1;
     211  delay_request.tv_nsec = 35000000;
     212  sc = nanosleep( &delay_request, NULL );
     213  assert( !sc );
    212214 
    213215  /* print the current real time again */
Note: See TracChangeset for help on using the changeset viewer.