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/psxkey03/init.c

    r0c11618 rea7d86b  
    4141)
    4242{
    43   pthread_t     thread;
    44   int           sc;
     43  pthread_t        thread;
     44  int              sc;
     45  struct timespec  delay_request;
    4546
    4647  puts( "\n\n*** TEST KEY 03 ***" );
     
    5859
    5960  puts( "Init - sleep - let thread run - OK" );
    60   usleep(500000);
     61  delay_request.tv_sec = 0;
     62  delay_request.tv_nsec = 5 * 100000000;
     63  sc = nanosleep( &delay_request, NULL );
     64  assert( !sc );
    6165
    6266  puts( "Init - pthread_key_delete - OK" );
     
    7781
    7882  puts( "Init - sleep - let thread run - OK" );
    79   usleep(500000);
     83  sc = nanosleep( &delay_request, NULL );
     84  assert( !sc );
    8085
    8186  puts( "Init - verify destructor did NOT ran" );
Note: See TracChangeset for help on using the changeset viewer.