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

    r0c11618 rea7d86b  
    5050  pthread_t           id;
    5151  pthread_attr_t      attr;
     52  struct timespec     delay_request;
    5253
    5354  puts( "\n\n*** POSIX STACK ATTRIBUTE TEST 01 ***" );
     
    7374
    7475  puts( "Init - let other thread run" );
    75   usleep( 500000 );
     76  delay_request.tv_sec = 0;
     77  delay_request.tv_nsec = 5 * 100000000;
     78  sc = nanosleep( &delay_request, NULL );
     79  assert( !sc );
    7680
    7781  puts( "*** END OF POSIX STACK ATTRIBUTE TEST 01 ***" );
Note: See TracChangeset for help on using the changeset viewer.