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

    r0c11618 rea7d86b  
    149149  bool                trueArg = true;
    150150  bool                falseArg = false;
     151  struct timespec     delay_request;
    151152
    152153  puts( "\n\n*** POSIX TEST SIGNAL " TEST_NAME " ***" );
     
    169170
    170171  puts( "Init - sleep - let threads settle - OK" );
    171   usleep(500000);
     172  delay_request.tv_sec = 0;
     173  delay_request.tv_nsec = 5 * 100000000;
     174  sc = nanosleep( &delay_request, NULL );
     175  assert( !sc );
    172176
    173177  puts( "Init - sleep - SignalBlocked thread settle - OK" );
    174   usleep(500000);
     178  sc = nanosleep( &delay_request, NULL );
     179  assert( !sc );
    175180
    176181  printf( "Init - sending %s - deliver to one thread\n",
Note: See TracChangeset for help on using the changeset viewer.